Skip to content

Commit

Permalink
Merge pull request #4328 from maxmouchet/list_hidden_files
Browse files Browse the repository at this point in the history
List hidden files if allowed
  • Loading branch information
minrk authored Feb 25, 2019
2 parents 0e28875 + 533e198 commit 6d15e9c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions notebook/services/contents/filemanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,11 +334,11 @@ def _dir_model(self, path, content=True):
self.log.debug("%s not a regular file", os_path)
continue

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

model['format'] = 'json'

Expand Down

0 comments on commit 6d15e9c

Please sign in to comment.