We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19397c0 commit 81e7a43Copy full SHA for 81e7a43
tools/examplecode/example.py
@@ -7,7 +7,7 @@
7
8
"""
9
10
-import os
+import posixpath
11
12
13
class DirectoryTree:
@@ -69,7 +69,9 @@ def _add_dictionary(
69
70
# We are dealing with a directory
71
else:
72
- self._tree.append(f"{prefix}{connector} {entry.rstrip(os.sep)}{os.sep}")
+ self._tree.append(
73
+ f"{prefix}{connector} {entry.rstrip(posixpath.sep)}{posixpath.sep}"
74
+ )
75
prefix += (
76
self.PIPE_PREFIX if index != entries_count - 1 else self.SPACE_PREFIX
77
)
0 commit comments