mirror of
https://github.com/beetbox/beets.git
synced 2026-02-09 08:52:30 +01:00
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:
commit
d4ecd5fc86
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
||||
)
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
--------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue