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

Accepted Reply

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

Replies

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