I think I'm in FileManager hell.... I've been trying to work with an example app from Apple called -"NavigatingHierarchicalDataUsingOutlineAndSplitViews" in the Apple docs.
They load their example directory /Applications to view with the browser....
let appsURLs = FileManager.default.urls(for: .applicationDirectory, in: .localDomainMask)
addFileSystemObject(appsURLs[0], indexPath: IndexPath(indexes: [0, 0]))
addFileSystemObject I believe is their own function they wrote. I think the FileManager.default.urls loads an array or dictionary of URL's for all subdirectories and files?
This works, but when I try to change it to a different directory (even one like .desktopDirectory, .userDomainMask) it barfs....
what I really want is to be able to read a directory like file:///Users/me/myChoice_dir and have the manager create the same structure of URLs from my user directory myChoice_dir....
When I do this it barfs on every approach I've tried. I've even created an array of URL's.
Now when I drag and drop the myChoice_dir, everything works just fine.... Anyone have any ideas on this? Am I being prohibited from the Application trying to read my directories I've created in my /Users/me/directories?
Thanks in advance. -Jim