()
| 304 | @api.route("/files/folder-contents", methods=["GET"]) |
| 305 | @restricted_access |
| 306 | def folderContents(): |
| 307 | location = request.args.get('location') |
| 308 | externalDriveMgr = externalDriveManager() |
| 309 | |
| 310 | if location == '/': |
| 311 | return jsonify(externalDriveMgr.getRemovableDrives()) |
| 312 | |
| 313 | else: |
| 314 | return jsonify(externalDriveMgr.getFolderContents("%s/*" % location)) |
| 315 | |
| 316 | @api.route("/files/file-browsing-extensions", methods=["GET"]) |
| 317 | @restricted_access |
nothing calls this directly
no test coverage detected