Closed meh closed 7 years ago
Hm, a careful reading of the spec gives:
If, when attempting to write a file, the destination directory is non-existant an attempt should be made to create it with permission 0700.
So we should probably lazily create it (or return an error).
Could you also publish the new version on crates.io please?
Done
The environment variable is defined on my system but the directory doesn't actually exist, which makes
BaseDirectories::new
return an error.Is this actually how it should be handled? I haven't had issues with programs that follow the XDG convention.