Results 1 to 6 of 6

Thread: Getting the contents of a folder?

  1. #1
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Getting the contents of a folder?

    Is there any way I can take the file path of a folder, then return the contents of it, preferably into an array?

    GetContents(); or something?

    ~Sandstorm

  2. #2
    Join Date
    Dec 2008
    Location
    In a galaxy far, far away...
    Posts
    584
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hi,

    Yes there is! :P Use these:

    SCAR Code:
    function GetFiles(Path, Ext: string): TStringArray;
    Returns the files in a directory.

    function GetFolders(Path: string): TStringArray;
    Returns the folders in a directory.



    ~NS

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks a lot, that will help my current project a lot!

    ~Sandstorm

  4. #4
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  5. #5
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm working on a music player.

    ~Sandstorm

  6. #6
    Join Date
    Jan 2008
    Location
    California, US
    Posts
    2,765
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Make an indexer that indexes your hard drive .

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •