#How `app_data_dir` is used in rust

4 messages · Page 1 of 1 (latest)

remote wedge
#

I'm trying to get /Users/ayang/Library/Application Support/${identifier} but, it only prints /Users/ayang/Library/Application Support/ and I'm annoyed!

vocal stump
#

If you have a reference to app: AppHandle<Runtime> then you can do app.path().app_data_dir().unwrap()

nimble stag
#

Config::default() creates a config with all values set to their defaults; the app identifier in that config is an empty string. Your app identifier is skipped when being joined with the rest of the path because it's not valid to have an empty file or directory name in a path.