mirror of
https://github.com/9001/copyparty.git
synced 2025-10-04 02:09:20 +02:00
fix xbu/xau reloc collision-handling;
if a hook relocates a file into a folder where that same file exists with the same filename, the filename-collision-avoidance would kick in, generating a new filename and another copy
This commit is contained in:
parent
41fa6b2552
commit
0a9a807772
2 changed files with 11 additions and 6 deletions
|
@ -71,6 +71,9 @@ def main():
|
|||
## selecting it inside the print at the end:
|
||||
##
|
||||
|
||||
# move all uploads to one specific folder
|
||||
into_junk = {"vp": "/junk"}
|
||||
|
||||
# create a subfolder named after the filetype and move it into there
|
||||
into_subfolder = {"vp": ext}
|
||||
|
||||
|
@ -92,8 +95,8 @@ def main():
|
|||
by_category = {} # no action
|
||||
|
||||
# now choose the default effect to apply; can be any of these:
|
||||
# into_subfolder into_toplevel into_sibling by_category
|
||||
effect = {"vp": "/junk"}
|
||||
# into_junk into_subfolder into_toplevel into_sibling by_category
|
||||
effect = into_sibling
|
||||
|
||||
##
|
||||
## but we can keep going, adding more speicifc rules
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue