public FilesModel GetFiles(bool rootOnly = false, string location = "", string fileName = "") { try { return(FilesModel.FromJson(string.IsNullOrEmpty(location) ? HTMLGet(HTMLGet($"{_baseURL}api/files?recursive=" + rootOnly)) : string.IsNullOrEmpty(fileName) ? HTMLGet(HTMLGet($"{_baseURL}api/files/" + location + "?recursive=" + rootOnly)) : HTMLGet(HTMLGet($"{_baseURL}api/files/" + location + "/" + fileName + "?recursive=" + rootOnly)))); } catch (Exception ex) { return(null); } }