From e53b93581ea1db3d9ae5731315c0f8b8106b9fb5 Mon Sep 17 00:00:00 2001 From: edson duarte Date: Wed, 6 Jun 2018 16:52:37 -0300 Subject: [PATCH] fixes files not been moved to destination when overwrite=False --- boltons/fileutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boltons/fileutils.py b/boltons/fileutils.py index 499086c..459b762 100644 --- a/boltons/fileutils.py +++ b/boltons/fileutils.py @@ -285,7 +285,7 @@ else: os.rename(src, dst) else: os.link(src, dst) - os.unlink(dst) + os.unlink(src) return