Lists the subdirectories of a given directory and returns the full paths of listed subdirectories.
Other uses: For each directory found, fListDirectory can automatically call a special procedure written in WLanguage. This procedure is used to handle the current directory. In this case, fListDirectory returns the number of listed directories.
Syntax
Listing the subdirectories of a directory Hide the details
<Result> = fListDirectory(<Path of initial directory> [, <Options>])
<Result>: Character string
Name of listed directories, separated by CR characters (Carriage Return).
<Path of initial directory>: Character string
Path of directory from which the subdirectories will be sought.
<Options>: Integer constant or combination of constants (optional)
Options that can be taken into account: | |
fdInterruptible | The iteration can be interrupted by pressing ESC. The function will return the name of directories listed until the interruption. |
fPathUNICODE | <Result> will be a string in Unicode format. |
frNotRecursive | The iteration is non-recursive. Subdirectories are ignored. |
frRecursive (Default value) | The iteration is recursive. Subdirectories are automatically taken into account. |
Remarks
Handling errors
Caution:
fListDirectory returns no error code. To determine if this function has generated an error, use
ErrorInfo with the
errMessage constant.