Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

10 lines
328 B

# -*- mode: snippet -*-
# name: documentDirectory
# key: documentDirectory
# --
if let path =
NSSearchPathForDirectoriesInDomains(
FileManager.SearchPathDirectory.documentDirectory,
FileManager.SearchPathDomainMask.userDomainMask, true).first {
let documentsDirectoryURL = NSURL.fileURL(withPath: path)
}