init
This commit is contained in:
10
snippets/swift-mode/documentdirectory
Normal file
10
snippets/swift-mode/documentdirectory
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: documentDirectory
|
||||
# key: documentDirectory
|
||||
# --
|
||||
if let path =
|
||||
NSSearchPathForDirectoriesInDomains(
|
||||
FileManager.SearchPathDirectory.documentDirectory,
|
||||
FileManager.SearchPathDomainMask.userDomainMask, true).first {
|
||||
let documentsDirectoryURL = NSURL.fileURL(withPath: path)
|
||||
}
|
||||
Reference in New Issue
Block a user