Skip to content

Commit 1566dd1

Browse files
committed
List hidden files if allowed (#3812)
1 parent 31c2184 commit 1566dd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

notebook/services/contents/filemanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ def _dir_model(self, path, content=True):
334334
self.log.debug("%s not a regular file", os_path)
335335
continue
336336

337-
if self.should_list(name) and not is_file_hidden(os_path, stat_res=st):
337+
if self.should_list(name) and ((not is_file_hidden(os_path, stat_res=st)) or self.allow_hidden):
338338
contents.append(self.get(
339339
path='%s/%s' % (path, name),
340340
content=False)

0 commit comments

Comments
 (0)