Get number of files in a directory

Hello, is there a way to get the number of files in a directory? I mean if I have

File.root
File_1.root
File_2.root
File_3.root
File_4.root

etc.

is there a way to get how many files there are?

Just modify the example to select and count what you need.

Thank you @dastudillo dastudillo

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.