Skip to content

Commit b6fd61a

Browse files
authored
set followlinks on posix platform (#716)
1 parent d6b1099 commit b6fd61a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

visualdl/io/bfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ def write(self, filename, file_content, binary_mode=False):
124124
self._write(filename, file_content, "wb" if binary_mode else "w")
125125

126126
def walk(self, dir):
127+
if 'posix' == os.name:
128+
return os.walk(dir, followlinks=True)
127129
return os.walk(dir)
128130

129131

0 commit comments

Comments
 (0)