ApplicationSupportDirectory does not return correct value

In my OS X app I'm trying to fetch application's support directory. But I'm getting wrong results.

using:

FileManager.default.urls(for: .applicationSupportDirectory, in: .userDomainMask)

returns

///Users/chandresh/Library/Application%20Support/

instead

/Users/chandresh/Library/Containers/com.thinkbizz.ThinkBizz-Business-Dynamics/Data/Library/Application%20Support/

Although, it returns correct result while using SandBox.

It doesn't give me correct path without SandBox

Answered by galad87 in 709988022

The path is correct, only sandboxed apps use the Containers folder.

Accepted Answer

The path is correct, only sandboxed apps use the Containers folder.

ApplicationSupportDirectory does not return correct value
 
 
Q