diff --git a/beets/util/__init__.py b/beets/util/__init__.py index 4335e0f3e..916abddde 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -526,7 +526,7 @@ def move(path: bytes, dest: bytes, replace: bool = False): dirname = os.path.dirname(bytestring_path(dest)) tmp = tempfile.NamedTemporaryFile( suffix=syspath(b".beets", prefix=False), - prefix=syspath(b"." + basename, prefix=False), + prefix=syspath(b"." + basename + b".", prefix=False), dir=syspath(dirname), delete=False, ) diff --git a/docs/changelog.rst b/docs/changelog.rst index 205af7dad..f129edc54 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -6,6 +6,9 @@ Changelog Changelog goes here! Please add your entry to the bottom of one of the lists below! +Bug fixes: + +* Improved naming of temporary files by separating the random part with the file extension. 2.0.0 (May 30, 2024) --------------------