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
- ...
By default, the instanciation of a
Pinterest()empties anydata/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: