Recursive subfolder file scanning
David Kwinter
david at kwinter.ca
Fri Mar 28 13:52:01 EST 2003
In the interest of making a backup utility I've found a problem which
perhaps someone has delt with before
I would like to specify a folder say:
/Macintosh HD/Users/davidkwi/
And have it identify all files with full paths, then in each folder,
sub-folder, sub-sub-folder, etc. collect all paths for all files regardless
of the depth of folders.
Resulting with something like:
/Macintosh HD/Users/davidkwi/Shared/song.mp3
/Macinotsh HD/Users/davidkwi/Shared/desktoppic.jpg
/Macintosh HD/Users/davidkwi/Pictures/Vacations/Whistler/mountain.tiff
I'm familiar with "the files" and "the folders" - the solution must be some
kind of function which gets the files and folders for a starting directory
then calls itself with each subfolder?
More information about the use-livecode
mailing list