I develop an App in macos, and I need to access the documentDirectory:
let dialogURL = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).first
I get: file:///Users//Library/Containers/<*******.appName>/Data/Documents
But in the Library/Containers directory I don't have the <*******.appDirectory> (in my case "PR.medical") but (in my case "medical")
of course, it would be possible to hard code the name of the desired directory, but if in the future apple change anything, my app will not work properly.
Am I missing something?