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.

9 lines
328 B

5 years ago
  1. # -*- mode: snippet -*-
  2. # name: documentDirectory
  3. # key: documentDirectory
  4. # --
  5. if let path =
  6. NSSearchPathForDirectoriesInDomains(
  7. FileManager.SearchPathDirectory.documentDirectory,
  8. FileManager.SearchPathDomainMask.userDomainMask, true).first {
  9. let documentsDirectoryURL = NSURL.fileURL(withPath: path)
  10. }