def deleteDirectory(dirname=None): if dirname and dirData.rm(dirname, True): return getDirectoryJSON() return jsonify({ "success": False, "error": "Invalid request" })
def deleteFile(filename=None): if filename and dirData.rm(filename, False): return getDirectoryJSON() return jsonify({ "success": False, "error": "Invalid request" })