FileDelete
- 授权协议: 未知
- 开发语言: Swift Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/sketchytech/FileDelete
软件介绍
FileDelete 是简单的 iOS 类,可以从文档和库目录删除文件和子目录。
使用需要引入:
[FileDelete deleteFileFromDocumentsDirectory:@"helpme" inSubDirectory:nil]; [FileDelete deleteFileFromLibraryDirectory:@"helpme" inSubDirectory:@"help/theworld]; [FileDelete deleteSubDirectoryFromDocumentsDirectory:@"helpless"]; [FileDelete deleteSubDirectoryFromLibraryDirectory:@"Libraryofhelplessness/mine"];
// Delete files
FileDelete.deleteFileFromDocumentsDirectory("YourFile.extension",subdirectory:"YourDirectory")
FileDelete.deleteFileFromLibraryDirectory("YourFile.extension",subdirectory:"YourDirectory")
FileDelete.deleteFileFromApplicationSupportDirectory("YourFile.extension",subdirectory:"YourDirectory")
FileDelete.deleteFileFromTemporaryDirectory("YourFile.extension",subdirectory:"YourDirectory")
FileDelete.deleteFileFromCachesDirectory("YourFile.extension",subdirectory:"YourDirectory")
// Delete folders
FileDelete.deleteSubDirectoryFromDocumentsDirectory("YourDirectory")
FileDelete.deleteSubDirectoryFromLibraryDirectory("YourDirectory")
FileDelete.deleteSubDirectoryFromApplicationSupportDirectory("YourDirectory")
FileDelete.deleteSubDirectoryFromTemporaryDirectory("YourDirectory")
FileDelete.deleteSubDirectoryFromCachesDirectory("YourDirectory")
