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

Variable Backup Files Purger #6851

Merged
merged 46 commits into from
Oct 13, 2024

Conversation

TheAbsolutionism
Copy link
Contributor

@TheAbsolutionism TheAbsolutionism commented Jul 2, 2024

Description

This PR allows Skript to purge backup files, if number of files is >= required and will delete files starting from the oldest until number of files left = remain


Target Minecraft Versions: any
Requirements: none
Related Issues: none

@TheAbsolutionism TheAbsolutionism changed the base branch from master to dev/feature July 2, 2024 15:33
src/main/java/ch/njol/skript/util/FileUtils.java Outdated Show resolved Hide resolved
src/main/resources/config.sk Outdated Show resolved Hide resolved
src/main/resources/config.sk Outdated Show resolved Hide resolved
Changed to primitive java types
Added checks within the method incase called manually by a user.
Changed config option
Add config description
Reverted back to defining how many files a user wants to keep
Sovde and eren agreed upon so
Added info on what the user can not set the options to.
Can be removed if needed.
Changed to a 1 liner option in config
Changed method handler to support the new option
Changed description in config
Added the option to all other applicable databases.
Changed function to support other databases.
Moved the main description of the option to the top database in the config.
Re-worded the description.
src/main/resources/config.sk Outdated Show resolved Hide resolved
@sovdeeth sovdeeth added feature Pull request adding a new feature. up for debate When the decision is yet to be debated on the issue in question labels Jul 12, 2024
TheAbsolutionism and others added 6 commits July 19, 2024 15:12
Added, The ability to put 0
Added, 0 does not call "startBackupTask"
Added, 0 deletes all files in backup directory
Changed, Config for putting 0
Added, warning for putting 0
Changed, "backupPurge" method to allow 0 as a parameter
Changed, filters files array only if tokeep > 0
@Moderocky Moderocky added the feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version. label Aug 20, 2024
So it doesnt look like its strictly only for .csv files
@TheLimeGlass TheLimeGlass requested a review from Efnilite August 30, 2024 15:56
@TheLimeGlass TheLimeGlass removed the up for debate When the decision is yet to be debated on the issue in question label Aug 30, 2024
@sovdeeth sovdeeth merged commit 3420038 into SkriptLang:dev/feature Oct 13, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature. feature-ready A PR/issue that has been approved, tested and can be merged/closed in the next feature version.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants