CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

Warehouse 0.2.0

Warehouse 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Jun 2015
SPMSupports SPM

Maintained by muukii0803.



Warehouse 0.2.0

You can use easily NSFileManager.

How to use

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

}

Generate Warehouse instance for each category.

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

}