Is there a way to get more details (size,date created,etc) about a specific item when using contentsOfDirectoryAtPath or a similar method?
I really need to be able to distinguish between files and folders in a directory.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll want to look at the following method from NSFileManager:
The dictionary of attributes returned contains many keys, but the NSFileType key will help you determine whether the path points to an NSFileTypeDirectory (directory) or a NSFileTypeRegular (regular file). The following keys may also be of interest: