diff --git a/beets/util/__init__.py b/beets/util/__init__.py index aae14ee63..bb84aedc7 100644 --- a/beets/util/__init__.py +++ b/beets/util/__init__.py @@ -222,12 +222,14 @@ def sorted_walk(path, ignore=(), ignore_hidden=False, logger=None): for res in sorted_walk(cur, ignore, ignore_hidden, logger): yield res + def path_as_posix(path): """Return the string representation of the path with forward (/) slashes. """ return path.replace(b'\\', b'/') + def mkdirall(path): """Make all the enclosing directories of path (like mkdir -p on the parent).