We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfd73c6 commit 632e576Copy full SHA for 632e576
1 file changed
cmscommon/archive.py
@@ -183,8 +183,10 @@ def namelist(self):
183
names = []
184
for path, _, filenames in os.walk(self.temp_dir):
185
for filename in filenames:
186
- names.append(os.path.relpath(os.path.join(path, filename),
187
- self.temp_dir))
+ filepath = os.path.join(path, filename)
+ if os.path.islink(filepath) or not os.path.isfile(filepath):
188
+ continue
189
+ names.append(os.path.relpath(filepath, self.temp_dir))
190
return names
191
192
def read(self, file_path):
0 commit comments