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

Add ability to trash files for when deleting is not an option #67

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

CrmsnDragoon
Copy link

@CrmsnDragoon CrmsnDragoon commented Jul 24, 2023

Trashing files is often the only way a guest account can remove a file from a shared folder or drive

I needed this so others may also, also includes the ability to attempt to untrash files marked as trashed, and a switch to exclude trashed files from a file list, as the v2 List Files API could return trashed files and I could not confirm if this was still the case for the v3 API.

The effect of trashing or untrashing a directory is that it works recursively, so it's behind a recursing flag as with delete.

Also adds the Trashed related fields to Files Info <ID> if they exist, with Trashed only showing if it's true as it's always included in the retrieved info now.

@CrmsnDragoon CrmsnDragoon changed the title Add ability to trash files instead of delete Add ability to trash files for when deleting is not an option Jul 24, 2023
@CrmsnDragoon CrmsnDragoon marked this pull request as ready for review July 24, 2023 06:08
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

Successfully merging this pull request may close these issues.

None yet

1 participant