Hello, how to dertermine when i ListDir() if element is file or directory ?
Thanks :)
Hello, how to dertermine when i ListDir() if element is file or directory ?
Thanks :)
I'm not seeing an easy way to tell between a file and a directory.
What is the final objective?
If you iterate through the list returned by ListDir() you'll be able to see if an item contains sub items which would make it a directory. This method is not perfect as an empty directory would be identified as a file...
Example
for each item in DirList("/")
if DirList(item).Count() > 0 then
print item + " is a directory"
else
print item + " is a file or empty directory"
end if
end for
Can't find what you're looking for?
Contact support