Code posted to GitHub: FileDelete for iOS (Xcode)


Simple FileDelete class for iOS to delete files and subdirectories from the Library and Documents Directories posted to GitHub.

It's really easy to use, just import the FileDelete.h file and then use the following class methods, like so:

[FileDelete deleteFileFromDocumentsDirectory:@"helpme" inSubDirectory:nil];
[FileDelete deleteFileFromLibraryDirectory:@"helpme" inSubDirectory:@"/help/theworld];
   
[FileDelete deleteSubDirectoryFromDocumentsDirectory:@"helpless"];
[FileDelete deleteSubDirectoryFromLibraryDirectory:@"Libraryofhelplessness/mine"];

See companion class FileSave as well.


Endorse on Coderwall

Comments