Of course, this would not be necessary if the folder names ended with a slash. Unfortunately, answer folder returns a path without a trailing slash, so you have to touch the file system for every item in the list. For a long list I imagine that is a lot of overhead. An alternative might be to assume all folders until you process the list, then process as folders inside a try catch statement and process as a file when an error or other condition is encountered.
Bob S > On Apr 22, 2018, at 03:58 , Mike Bonner via use-livecode > <use-livecode@lists.runrev.com> wrote: > > -- Go through the list and determine whether each line > -- of the data is a folder or if it is a file _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode