Pergunta

What is the equivalent of Window's C:\Users\userName\AppData\Roaming\appName?

I need a directory that won't cause permission problems to store the updateable part of my application so I can automatically download and override my content.

Thank you.

Foi útil?

Solução

/Users/USERNAME/Library/Application Support/

Edit:

This answer has drawn a lot of upvotes despite its minimalistic nature. Therefore, I want to point out the things mentioned in the comments here to make them more visible:

  • There are several other folders being used for application data / configuration, as mentioned in this answer.
  • If writing an application, don't hardcode that path. Instead, use macOS' API to retrieve it. This question has several answers for both ObjectiveC and Swift.

Outras dicas

~/Library/Application Support/ 

in shift+command+G in finder

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top