Commit 024cbecc authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[controller] filelist got a hide_hidden option

parent b80c066a
......@@ -146,16 +146,18 @@ class FSAjaxController(AbstractController):
@cherrypy.expose
@cherrypy.tools.ajax(encoded=True)
@cherrypy.tools.method(accept="GET")
def filelist(self, path, filefilter=None, reverse=False, watch_id=None):
def filelist(self, path, filefilter=None, reverse=False, watch_id=None, hide_hidden=True):
self.release_session()
fs = self.get('fs')
self.release_database()
reverse = self.convert(reverse, bool)
hide_hidden = self.convert(hide_hidden, bool)
# get the files with the filter
return fs.get_file_list(path, filter=filefilter,
reverse=reverse, encode_json=True,
hide_hidden=hide_hidden,
window_id=self.get('window_id'),
view_id=self.get('view_id'),
watch_id=watch_id)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment