From 31907c9c4a1644109d40af5bed438f52d781a269 Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 9 Jul 2010 21:49:46 -0700 Subject: [PATCH] Fixed a bug in plat_other where conflict handling wouldn't be done correctly in external volume. Thanks to John Benediktsson for the tip. --- send2trash/plat_other.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/send2trash/plat_other.py b/send2trash/plat_other.py index 117a057..dd6e6d1 100644 --- a/send2trash/plat_other.py +++ b/send2trash/plat_other.py @@ -57,7 +57,7 @@ def move_without_conflict(src, dst): counter += 1 base_name, ext = op.splitext(filename) 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) def send2trash(path):