Commit 679aad45 authored by Benjamin Fischer's avatar Benjamin Fischer
Browse files

[controller] FSAjaxController: check for existance in filelist

parent 3f1ba2db
......@@ -154,6 +154,9 @@ class FSAjaxController(AbstractController):
reverse = self.convert(reverse, bool)
hide_hidden = self.convert(hide_hidden, bool)
if not fs.exists(path):
raise AjaxException("there is no such file: %s" % path)
# get the files with the filter
return fs.get_file_list(path, filter=filefilter,
reverse=reverse, encode_json=True,
Supports Markdown
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