Page 1 of 1
Count files only
Posted: Tue Aug 25, 2009 1:37 am
by KeesB
I need to just count files in the current directory. Is there an argument to FilesCount so it doesn't count files in sub folders?
Thanks,
Kees
Count files only
Posted: Tue Aug 25, 2009 2:15 am
by Oleg
You are correct, {FileCount()} variable counts the amount of files in specified folder and all subfolders.
In order to count files in specified folder only use the File Loop:
Set variable num to 0
File Loop //without subfolders
Increment num
End Loop
Probably we need to add corresponding system functions. I wrote this into our ToDo list.
Re: Count files only
Posted: Wed May 15, 2024 8:17 am
by Rukbunker
Bumping up an old topic, because I still face this "problem" today
Ofcourse the workaround works, but it will be great if that can be fixed into a system variable.