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

Overwrite file on download fails on Windows #127

Open
lindseykuettner opened this issue Oct 16, 2024 · 0 comments
Open

Overwrite file on download fails on Windows #127

lindseykuettner opened this issue Oct 16, 2024 · 0 comments

Comments

@lindseykuettner
Copy link

Downloading a file fails when the file already exists, e.g.

> dir
_1_stdout.txt
[other files]
import sevenbridges as sbg

file_ = sbg.files.query(project=<project name>, names=["_1_stdout.txt"])[0]
file_.download(path="_1_stdout.txt", overwrite=True)

results in an error,

FileExistsError: [WinError 183] Cannot create a file when that file already exists: '_1_stdout.txt.6414302349' -> '_1_stdout.txt'
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

1 participant