Advertisements
FT_TREE() Locate all directories and subdirectories on a drive Syntax FT_TREE( [ <cDrive:> ] ) -> aDirectories Arguments <cDrive:> is an optional drive to search. If omitted, FT_TREE() defaults to the current drive. Returns An array containing the name of each directory found on the specified drive. Description Use FT_TREE() to obtain an array of the directory structure of a specified drive. You may optionally specify a drive to search, other than the current drive. Please note that FT_TREE() will not cause a runtime error if you specify an invalid or inoperable drive, instead returns an empty array. The directory structure returned is not ordered in any way other than the order that the directories are contained in DOS. To put the directories in alphabetical order, use ASORT(). Examples // list all directories on the current drive aTree := FT_TREE() Aeval( aTree, {|e| Qout(e) } ) Source: WHEREIS.PRG Author: Steve Larsen
See Also: FT_WHEREIS() FT_ORIGIN()
Advertisements