mirror of
https://github.com/beetbox/beets.git
synced 2025-12-14 12:35:19 +01:00
add a missing _syspath call
This commit is contained in:
parent
d16311acb6
commit
c41c9f38f8
1 changed files with 2 additions and 3 deletions
|
|
@ -19,8 +19,7 @@ import shutil
|
|||
import sys
|
||||
from string import Template
|
||||
import logging
|
||||
import platform
|
||||
from beets.mediafile import MediaFile, UnreadableFileError, FileTypeError
|
||||
from beets.mediafile import MediaFile
|
||||
from beets import plugins
|
||||
|
||||
MAX_FILENAME_LENGTH = 200
|
||||
|
|
@ -165,7 +164,7 @@ def _prune_dirs(path, root):
|
|||
ancestors.reverse()
|
||||
for directory in ancestors:
|
||||
try:
|
||||
os.rmdir(directory)
|
||||
os.rmdir(_syspath(directory))
|
||||
except OSError:
|
||||
break
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue