Last active
October 15, 2019 06:05
-
-
Save andrewwoz/48411559334b46895f2e493da9125440 to your computer and use it in GitHub Desktop.
Revisions
-
andrewwoz revised this gist
Oct 15, 2019 . No changes.There are no files selected for viewing
-
andrewwoz revised this gist
Oct 14, 2019 . No changes.There are no files selected for viewing
-
andrewwoz created this gist
Oct 14, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ // Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. guard let documents = try? fs.url(for: .documentDirectory, in: .userDomainMask, appropriateFor: nil, create: false) else { return } let subpaths = try! fs.subpathsOfDirectory(atPath: documents.path)