nsfilemanager
Is there a safer way to create a directory if it does not exist?
I\'ve found this way of creating a directory if it does not exist. But it looks a bit wonky and I am afraid that this can go wrong in 1 of 1000 attempts.[详细]
2023-03-08 03:07 分类:问答What characters are allowed in a iOS file name?
I\'m looking for a way to make sure a string can be used as a file name under iOS. I\'m currently in the section of the code that deletes incompatible characters. I\'m wondering if I\'m doing it right[详细]
2023-03-07 17:24 分类:问答Delete all files and folder from a certain folder
I have a /Documents/Images folder , in that folder are several other folders named after years , in those folders i have images.I want to delete everything from the images folder ( including the folde[详细]
2023-03-04 03:06 分类:问答Why is NSDirectoryEnumerator picking up hidden files here?
i need to avoid hidden files in this enumeration, but .DS_Store files are still being added. i put in the NSLog to check, and i am getting output there.[详细]
2023-03-02 04:46 分类:问答copyItemAtPath always fails with File exists error
I\'m trying to copy directories with copyItemAtPath, yet every time it fails with a \"The operation couldn’t be completed. File exists\" error.[详细]
2023-02-28 12:19 分类:问答creating copy of file using file manager is not working for mac app
I have afile in one of the folder in my documents folder .I want to create a copy of that file in some other folder with some other name.The code I am using is[详细]
2023-02-26 23:53 分类:问答How to detect total available/free disk space on the iPhone/iPad device?
I\'m looking for a better way to detect available/free disk space on the iPhone/iPad device programmatically.[详细]
2023-02-26 10:13 分类:问答commitEditingStyle and delete file from document directory
I am trying to delete file from the document directory by use of commitEditingStyle method but I am facing following problem:[详细]
2023-02-26 02:22 分类:问答will NSFileSystemFileNumber in iOS always be unique?
When using attributesOfItemAtPath:error:, is NSFileSystemFileNumber always guaranteed to be unique for the开发者_StackOverflow社区 device?[详细]
2023-02-25 03:16 分类:问答iPhone - Saving and Loading a user's login information from file
Hey guys, I am having a bit of a problem trying to save a user\'s Login (email) and password (chars/nums). These are both UITextFields of NSStrings.[详细]
2023-02-24 22:44 分类:问答