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

[FEATURE] Add box functionality #89

Open
ToneVDB opened this issue Nov 7, 2024 · 1 comment
Open

[FEATURE] Add box functionality #89

ToneVDB opened this issue Nov 7, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@ToneVDB
Copy link

ToneVDB commented Nov 7, 2024

Is your feature request related to a problem? Please describe.

Missing functionality on the Box class, Both overwrite and delete is missing.

Describe the solution you'd like

I would like an overwrite:bool flag on BoxFileWriter so you can overwrite the file on Box if it already exists.
I would like a BoxFileDeleter so I can delete files on box.

Describe alternatives you've considered

This is basic functionality, there should not be a workaround needed for this.

Additional context

See following links:
https://github.com/box/box-python-sdk/blob/main/docs/usage/files.md#move-a-file
https://github.com/box/box-python-sdk/blob/main/docs/usage/files.md#delete-a-file

@ToneVDB ToneVDB added the enhancement New feature or request label Nov 7, 2024
@dannymeijer
Copy link
Member

dannymeijer commented Nov 7, 2024

alternatively, we could also do add a mode Field, like what we have in SFTP. For reference:

mode: SFTPWriteMode = Field(
default=SFTPWriteMode.OVERWRITE,
description="Write mode: overwrite, append, ignore, exclusive, backup, or update." + SFTPWriteMode.__doc__,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants