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

"data/" directory automatic removal #139

Open
drzraf opened this issue Mar 2, 2021 · 1 comment
Open

"data/" directory automatic removal #139

drzraf opened this issue Mar 2, 2021 · 1 comment

Comments

@drzraf
Copy link

drzraf commented Mar 2, 2021

By default, the instanciation of a Pinterest() empties any data/ directory present in the current directory.
I happened to actually have a directory named data/ in the same folder where I ran my script.
I lost every file it contained after the first launch of my Python script.

It's really unpleasant and there are many ways to do things differently:

  • Bail-out
  • Not emptying the directory
  • Not overriding files it contains
  • Using /tmp/
  • Using a temporary or fancy directory name
  • ...
@bstoilov
Copy link
Owner

bstoilov commented Mar 2, 2021

Thats a good point.. never thought of it.

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