fixed OSError: [Errno 18] Invalid cross-device link error

This commit is contained in:
Bryan Bailey
2022-03-20 21:17:56 -04:00
parent ce1afe0ef8
commit 0ebe986708

View File

@@ -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):