Review: add missing lines
@@ -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).
