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
}