array("dir" => $dir, "files" => $files))); } else { OCP\JSON::error(array("data" => array("message" => "Could not delete:\n" . $filesWithError))); }