Commit 3eae0e0e authored by Martin Urban's avatar Martin Urban
Browse files

File: remove relicts from ajax controller: exists

parent e5a7ab51
......@@ -76,13 +76,12 @@ class FSAjaxController(AbstractController):
fs = self.get('fs')
self.release_database()
# path = path
# type = type if type else type
target_type = fs.exists(path, type=filetype)
if target_type:
return self.success(type=target_type, encode_json=True)
return target_type
else:
return self.fail(encode_json=True)
return "Failed"
@cherrypy.expose
@cherrypy.tools.ajax(encoded=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