Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Nanforum Toolkit v2.1 Reference Guide - <b>ft_tree()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson