Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application's data folder in Mac

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.

like image 939
kambi Avatar asked Feb 29 '12 08:02

kambi


People also ask

Where is the data folder on Mac?

On your Mac, click the Finder icon in the Dock to open a Finder window. Choose View > Show Path Bar, or press the Option key to show the path bar momentarily. The location and nested folders that contain your file or folder are displayed near the bottom of the Finder window.

Can I delete macOS Install data folder?

The folder itself doesn't have the 'Move to Trash' option, but all the folders and files in it can be deleted. I'll list all the files it contains and their size : BaseSystem. chunklist (4KB on disk)

Where can I find application data folder?

To open the AppData folder on Windows 10, 8 & 7: Open File Explorer/Windows Explorer. Type %AppData% into the address bar and hit enter. Navigate to the required folder (Roaming or Local)


1 Answers

/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.
like image 51
flyx Avatar answered Sep 21 '22 13:09

flyx