CocoaPods trunk is moving to be read-only. Read more on the blog, there are 14 months to go.
| TestsTested | ✓ |
| LangLanguage | SwiftSwift |
| License | MIT |
| ReleasedLast Release | Jun 2015 |
| SPMSupports SPM | ✗ |
Maintained by muukii0803.
You can use easily NSFileManager.
var path = Warehouse.documentDirectoryPath()
path = path + "/hey/hey.txt"
let warehouse = Warehouse()
warehouse.subDirectoryPath = "/Test"
warehouse.saveFile(fileName: "Muukii", contents: NSData(), success: { (savedRelativePath) -> Void in
}) { (error) -> Void in
}let warehouseForImage = Warehouse()
let warehouseForAudio = Warehouse()
let warehouseForMovie = Warehouse()warehouseForImage.saveFile(fileName: "imageFile", contents: NSData(), success: { (savedRelativePath) -> Void in
}) { (error) -> Void in
}
warehouseForAudio.saveFile(fileName: "audioFile", contents: NSData(), success: { (savedRelativePath) -> Void in
}) { (error) -> Void in
}