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')
# 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
return "Failed"
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