|
|
|
|
|
fListDirectory (Function) In french: fListeRépertoire 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. | frNotRecursive | The iteration is non-recursive. Subdirectories are ignored. | frRecursive (Default value) | The iteration is recursive. Subdirectories are automatically taken into account. | fUnicodePath | <Result> will be a string in Unicode format. |
Remarks Handling errors Caution: fListDirectory does not return an error code.. To determine if this function has generated an error, use ErrorInfo with the errMessage constant.
Related Examples:
|
Unit examples (WINDEV): The fListFile function
[ + ] Using fListFile and its syntax that directly returns the list of files/directories found in string format.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|