Adjust temporary files (#5280)

Rigth now it creates something like:
```
.../Perota Chingo/Un viajecito/.12 Rie Chinito.flac64u8gm5u.beets
```
where no separatio between temp name and file extention, and it makes
quite hard to read it.

So, this changes adjust name to
```
.../Perota Chingo/Un viajecito/.12 Rie Chinito.flac.64u8gm5u.beets
```

This was one of forgotten fixup from
8d50301be5
This commit is contained in:
Serene 2024-06-04 09:29:49 +10:00 committed by GitHub
commit d4ecd5fc86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View file

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

View file

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