Hello,
Is there any way to find out if a path is directory or file?
The only way I figured is to try and changeDirectory() into every item of the listing returned, if it doesn't work, it's a file.
Is there any other, more applicable, check I could do?
Checking for a .extension of the string won't always work, folders can have dots, files may not have dots.