Allow "qualifier" and "organization" to be optional
phiresky opened this issue · 1 comments
I'd like to use this crate, but I'd prefer to be able to only pass an app name, not an organization name or qualifier (what is that even?). On Windows, many applications don't follow the structure of */Organization/AppName but just use */AppName instead (not sure if putting Organization/ is actually defined as the standard somewhere). No one knows my name or the name of my organization, so adding that as a prefix to the AppName (that everyone knows) is just a hurdle to find what you want.
It seems like maybe for MacOS this can be achieved by using directories_next::from("", "", "name")
, since it will skip empty strings. But on Windows, from the code it seems like this might lead to a crash. So it would be great if either
- it would be documented that passing empty strings is allowed to skip a component or
- a second api of form
directories_next::from_custom(None, None, "myappname")
could be added
Also, I'm currently using cachedir which only uses an appname.
Ah I was just looking at the documentation in /doc, not the rustdoc. I guess I misinterpreted the Windows code then, and this is already possible by just passing empty strings.