【文件属性】:
文件名称:Warehouse:简易NSFileManager
文件大小:26KB
文件格式:ZIP
更新时间:2021-04-29 08:18:18
Swift
仓库 :clinking_beer_mugs:
您可以轻松使用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 = Warehous
【文件预览】:
Warehouse-master
----.gitignore~(576B)
----Warehouse.xcworkspace()
--------contents.xcworkspacedata(245B)
----Warehouse()
--------Warehouse.h(487B)
--------Source()
--------Info.plist(986B)
----Warehouse.xcodeproj()
--------project.pbxproj(15KB)
----LICENSE(1KB)
----WarehouseTests()
--------WarehouseTests.swift(6KB)
--------Info.plist(748B)
----Example-Swift()
--------Example-SwiftTests()
--------Example-Swift.xcodeproj()
--------Example-Swift()
----.gitignore(506B)
----README.md(823B)
----Warehouse.podspec(449B)