diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 00558e90ac..c1240ddcc5 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -536,6 +536,9 @@ def move(path: bytes, dest: bytes, replace: bool = False): finally: tmp.close() + # Copy file metadata + shutil.copystat(syspath(path), syspath(dest)) + # Move the copied file into place. try: os.replace(tmp.name, syspath(dest))