News:

Function Finder  Find all the functions within source code files

Main Menu

Get All Files In Folder (Sorted)

Started by kevin, June 29, 2011, 12:33:09 PM

Previous topic - Next topic

kevin

 Get All Files In Folder (Sorted)

   This example is built from a few other tidbits on the forums, what it does is returns a sorted list of the files that appear within a folder.  The GetAllFilesInFolderSorted() function is recursive, so it'll search folders within this folder, if you don't want this you'll have to manually switch this off within the function.

   This type of function can be handy when writing programs that need to not only locate if a file exists, but how old a file is.  For example,  I've been using a variation of it to build thumb nail galleries recently, but it's also used in PlayPackager.    


  Related To:

     GetAll Files In Folder


  Used Commands:

       FirstFile$()  NextFile$()  FileTYPE  - Redim



  Download:

        PlayBASIC Source code is attached bellow.