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