#22033 Create getAvailableTimeMachineFolder method #28574
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a third PR for #22033
First one: #28530
Second one: #28564
Proposed Changes
https://github.com/dotCMS/core/pull/28574/files#diff-5d7a647e09c3a207a6c502bdb945879b865d3dc8ad0cd7cc8c3b4fa233edd3aeR53
https://github.com/dotCMS/core/pull/28574/files#diff-5ec720d6f4deb8a5228aee22286a6bbf3103289becc6d1fa4947017c9052f935L66-R151
https://github.com/dotCMS/core/pull/28574/files#diff-f27467cb9919462f8c7c5a137c3c9b9bf21be349047c0d1e1ba9315773e53298L43-R59
https://github.com/dotCMS/core/pull/28574/files#diff-19b28e2982b6db869240fb8fc96a2bf2c156e3607f41656fd16d7845c45ba604R37
and use it to create a FileFilter
https://github.com/dotCMS/core/pull/28574/files#diff-19b28e2982b6db869240fb8fc96a2bf2c156e3607f41656fd16d7845c45ba604R245-R251
https://github.com/dotCMS/core/pull/28574/files#diff-f27467cb9919462f8c7c5a137c3c9b9bf21be349047c0d1e1ba9315773e53298R132
Checklist
Additional Info
Later, I am going to use this method on the PruneTimeMachineBackupJob.java to know when it need to be stopped, this job should be started when the TimeMachineJob is started and should be finished after the TimeMachineJob is stopped and no more Time Machine Folder are pending to be cleaned up