sevenbridges-python icon indicating copy to clipboard operation
sevenbridges-python copied to clipboard

Overwrite file on download fails on Windows

Open lindseykuettner opened this issue 1 year ago • 0 comments

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'

lindseykuettner avatar Oct 16 '24 15:10 lindseykuettner