List hidden files if allowed (#3812)

pull/4328/head
Maxime Mouchet 7 years ago
parent 31c2184d01
commit 1566dd1712

@ -334,7 +334,7 @@ class FileContentsManager(FileManagerMixin, ContentsManager):
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):
if self.should_list(name) and ((not is_file_hidden(os_path, stat_res=st)) or self.allow_hidden):
contents.append(self.get(
path='%s/%s' % (path, name),
content=False)

Loading…
Cancel
Save