|
Previous Top Next |
Prototype: | (String pFF,<String pDirectory>),Long |
pFF | Wildcards that are used in the count. Multiple wildcards can be used, separated by semicolon (;). For example: '*.txt;*.php;*.css;*.js;*.htm;*.aspx' |
[pDirectory] | Optional path to use. If it is not used then all directories are used. |
Returns | Returns number of files counted |
This method can be called after the ReadDirectories method is called. It counts files in either all the directories read in by ReadDirectories, or just the one being passed in. Multiple wildcards can be used, separated by semicolon (;) For example '*.txt;*.php;*.css' would count all files with .txt, .php or .css extensions.
Example:
ITF ITFileSearchClass
Fc Long
Code
ITF.ReadDirectories('C:\Clarion',True) !! Read all folders in C:\Clarion, showing progress window
Fc = ITF.CountFilesInDirectories('*.txt;*.php;*.css') !! Count all .txt, .php and .css files in the folders read.
See also: