so my query is, I want to construct my own file browser, is there a way to get the path of the storage I specified possible to get programmatically. All other browsers seem to show only their app sandboxed storage and when I click on the local storage take me to the default UI by using UIDOcumentPicker or Browser. And if its not possible can I use bookmarks to initially make the user give me the path using Picker or Browser and use it the next time to construct my UI?
And lastly about startAccessingSecurityScopedResource() and stop…(). Is there a simple way to know if I have access to a file/folder and hence do not need to call these(since the start function would return false if I do)?
Current ones I checked are using if this url.resourceValues(forKeys: [.isReadableKey]) is equal to resourceValues.isReadable or fileManager.isReadableFile(atPath: url.path) for startAccessingSecurityScopedResource() and stop…()




