mirror of
https://github.com/beetbox/beets.git
synced 2026-02-26 17:21:24 +01:00
Add special case for string
This commit is contained in:
parent
7ee11b0f1a
commit
819f03f0e0
1 changed files with 2 additions and 0 deletions
|
|
@ -227,6 +227,8 @@ def path_as_posix(path):
|
|||
"""Return the string representation of the path with forward (/)
|
||||
slashes.
|
||||
"""
|
||||
if isinstance(path, str):
|
||||
return path.replace('\\', '/')
|
||||
return path.replace(b'\\', b'/')
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue