Skip to content

Overwrite file on download fails on Windows #127

@lindseykuettner

Description

@lindseykuettner

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions