Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally ensure path exists #71

Open
elbenfreund opened this issue Apr 16, 2016 · 3 comments
Open

Optionally ensure path exists #71

elbenfreund opened this issue Apr 16, 2016 · 3 comments

Comments

@elbenfreund
Copy link

It seems a common use case that one wants to use the paths returned by appdirs. This usually requires the client to check its existence and maybe creating them.
As this seems to be a general enough situation, do you think it would be feasible to pass appdirs an otional ensure or create argument that will cause appdirs to implement this kind of logic in one central place?

elbenfreund added a commit to projecthamster/hamster-cli that referenced this issue Apr 16, 2016
We rely on ``appdirs`` to provide us with default directory names
specific to the platform used. This itself does not ensure that those
files actually exist. We provide some logic wrapping the original
functionality to deal with this.

An isse raising this topic has been
[filed](ActiveState/appdirs#71) with
``appdirs``.
elbenfreund added a commit to projecthamster/hamster-cli that referenced this issue Apr 16, 2016
We rely on ``appdirs`` to provide us with default directory names
specific to the platform used. This itself does not ensure that those
files actually exist. We provide some logic wrapping the original
functionality to deal with this.

An isse raising this topic has been
[filed](ActiveState/appdirs#71) with
``appdirs``.
elbenfreund added a commit to projecthamster/hamster-cli that referenced this issue Apr 16, 2016
We rely on ``appdirs`` to provide us with default directory names
specific to the platform used. This itself does not ensure that those
files actually exist. We provide some logic wrapping the original
functionality to deal with this.

An isse raising this topic has been
[filed](ActiveState/appdirs#71) with
``appdirs``.
elbenfreund added a commit to projecthamster/hamster-cli that referenced this issue Apr 16, 2016
We rely on ``appdirs`` to provide us with default directory names
specific to the platform used. This itself does not ensure that those
files actually exist. We provide some logic wrapping the original
functionality to deal with this.

An isse raising this topic has been
[filed](ActiveState/appdirs#71) with
``appdirs``.
@elbenfreund
Copy link
Author

elbenfreund commented Jan 28, 2017

@zoofood Seeing that the project is revitalizing, is this something that you would be interested in as a PR?

@Congee
Copy link

Congee commented Mar 13, 2019

it's been three years. I hope there should be at least a response.

@elbenfreund
Copy link
Author

it's been three years. I hope there should be at least a response.

Unfortunately there was none :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants