Skip to content

Skip upload if file exists #175

@Fukitsu

Description

@Fukitsu

I want to upload a file but only if it doesn't exist. I'm trying with
dbx.files_upload(f.read(), BACKUPPATH, mode=WriteMode('add', None))
But if the file exists I get an ApiError like
UploadError('path', UploadWriteFailed(reason=WriteError('conflict', WriteConflictError('file', None))
How can I upload the file only if it doesn't exist and if it does just skip it (do nothing)?

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