From 0ebe9867081e14751ef0fa783d55da344a71ac72 Mon Sep 17 00:00:00 2001 From: Bryan Bailey Date: Sun, 20 Mar 2022 21:17:56 -0400 Subject: [PATCH] fixed OSError: [Errno 18] Invalid cross-device link error --- yoink/comic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yoink/comic.py b/yoink/comic.py index c72c556..9f9f236 100644 --- a/yoink/comic.py +++ b/yoink/comic.py @@ -148,7 +148,7 @@ class ComicArchiver: return output = shutil.make_archive(self.comic.title, 'zip', self.worktree, self.worktree) - os.rename(output, os.path.join(self.worktree, f'{self.comic.title}{archive_format}')) + shutil.move(output, os.path.join(self.worktree, f'{self.comic.title}{archive_format}')) def cleanup_worktree(self):