Closed ghost closed 6 years ago
Ah ha!
let system = FileSystem()
let path = system.homeFolder.path
print("home: \(path)")
Output
home: /Users/robertnash/Library/Developer/CoreSimulator/Devices/91BA8C3F-9B72-42AB-89D1-6401B183E5EB/data/Containers/Data/Application/84D3A5EB-7DFE-4E6B-8E06-6784588CF3FA/
Then
let folder = try! Folder(path: home)
let documents = try! folder.subfolder(named: "Documents")
print("doc: \(documents.path)")
Output
doc: /Users/robertnash/Library/Developer/CoreSimulator/Devices/91BA8C3F-9B72-42AB-89D1-6401B183E5EB/data/Containers/Data/Application/F5FBDBEE-BDA6-4420-92BE-4D17C355C056/Documents/
Hi,
There is API for the docs directory, but it's not public. Any reason for this?
The 'home' API seems to work as follows
The docs directory is a little deeper.
Would be good to get the applicationSupportDirectory too