I hope to know if there is a way to detect an item is a file or directory?
-[NSFileManager fileExistsAtPath:isDirectory:]