app-dirs-rs
app-dirs-rs copied to clipboard
Add functions for accessing/creating files
-
get_app_filewould be identical toget_app_dir. -
app_filewould:- Call
create_dir_allon the path's parent. - Call
OpenOptions::new().create(true).append(true).openon the full path. - Return the full path.
- Call
- Could definitely consider combining
get_app_dirandget_app_fileintoget_app_pathand deprecating the old names. But I think that confuses the API. Even if the difference betweenget_app_dirandget_app_fileis purely semantic, it's good (IMO) to mirror the difference betweenapp_dirandapp_file.
Is it implemented?