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

feat: Added save-clear command #14

Merged
merged 2 commits into from Oct 8, 2022

Conversation

Gustash
Copy link
Contributor

@Gustash Gustash commented Oct 5, 2022

Why

There is currently no solution to remove files from the cloud. A user might want to remove their files from the cloud for privacy reasons, or they might have uploaded the wrong folder on accident and included personal information in those files.

How

This PR extends the existing command pool by adding a save-clear command to the cli. This command doesn't take all the arguments of save-sync since most of them are unnecessary.

It requires path, id and --os|platform arguments, and accepts --token and --name arguments.

The command lists all the files in the cloud and uses the existing remove_file(file) method to send a DELETE request for each. If it succeeds, the cloud bucket for the game will be empty.

Testing

I've tested this by uploading a miscelanious amount of random files, verifying they indeed existed by downloading them and then verifying that they would no longer download after running this command.

Future Plans

I intend to open a PR in the Heroic Launcher repo if/when this gets merged, adding the ability for Heroic users to clear their cloud saves at any time from the Game Settings.

Copy link
Member

@imLinguin imLinguin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks for contributing

@imLinguin imLinguin merged commit c1edf22 into Heroic-Games-Launcher:main Oct 8, 2022
@Gustash Gustash deleted the feat/cloud-save-clear branch October 8, 2022 15:21
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

2 participants