Function OSSingleton.getUserDataDir
Returns the absolute directory path where user data is written (user://).
On Linux, this is ~/, or ~/ if use_custom_user_dir is set.
On macOS, this is ~/Library/Application Support/Godot/app_userdata/class="pln">D project_name, or ~/Library/Application Support/class="pln">D custom_name if use_custom_user_dir is set.
On Windows, this is %APPDATA%\Godot\app_userdata\class="pln">D project_name, or %APPDATA%\class="pln">D custom_name if use_custom_user_dir is set. %APPDATA% expands to %USERPROFILE%\AppData\Roaming.
If the project name is empty, user:// falls back to res://.