-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Create recyclebin_recovery.py #648
base: develop
Are you sure you want to change the base?
Create recyclebin_recovery.py #648
Conversation
for more information, see https://pre-commit.ci
made some tweaks and added ingesting qbit_manage config
for more information, see https://pre-commit.ci
subdir_path = joiner(dir_path, subdir) | ||
for tdir in ls(subdir_path): # the action torrent files | ||
tdir_path = joiner(subdir_path, tdir) | ||
move_files(tdir_path, tdir_path.replace(base_dir, ""), debug) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changing replace('/.RecycleBin', '')
to replace(base_dir, '')
means it wipes the whole path before the category instead of just moving up a level from the RecycleBin. To maintain the logic as I had it before we could use f'/{os.path.basename(base_dir)}'
. I haven't thought through how to works if split_by_category
is true though.
for subdir in ls(dir_path): | ||
subdir_path = joiner(dir_path, subdir) | ||
move_files(subdir_path, btbackup_dir, debug) | ||
elif dir == "links": # will have a subfolder |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this assumes cross-seed linkdir is base_dir + "links"
and the logic within assumes flatLinking is false on v6, I don't know if these are safe assumptions to make
I'm working to rewrite this to support more config options since the original was really specific to my setup |
Bump for the rewrite ? |
I fizzled out with life. I might be able to pick it back up in November. |
Description
Initial concept for recovery from the recyclebin
Type of change
Please delete options that are not relevant.
Checklist: