mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-05-08 09:49:52 +00:00
Fixed a bug in plat_other where conflict handling wouldn't be done correctly in external volume. Thanks to John Benediktsson for the tip.
--HG-- branch : py3k extra : transplant_source : %C6%11%009sx%B29%CF%EC%CC%D4%88r%BE%D8%BB%9AIa
This commit is contained in:
parent
7546aa606a
commit
02dc392c45
@ -57,7 +57,7 @@ def move_without_conflict(src, dst):
|
|||||||
counter += 1
|
counter += 1
|
||||||
base_name, ext = op.splitext(filename)
|
base_name, ext = op.splitext(filename)
|
||||||
new_filename = '{0} {1}{2}'.format(base_name, counter, ext)
|
new_filename = '{0} {1}{2}'.format(base_name, counter, ext)
|
||||||
destpath = op.join(TRASH_PATH, new_filename)
|
destpath = op.join(dst, new_filename)
|
||||||
os.rename(src, destpath)
|
os.rename(src, destpath)
|
||||||
|
|
||||||
def send2trash(path):
|
def send2trash(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user