MCPcopy Create free account
hub / github.com/AstroPrint/AstroBox / getRemovableDrives

Function getRemovableDrives

src/astroprint/api/files.py:323–324  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

321@api.route("/files/removable-drives", methods=["GET"])
322@restricted_access
323def getRemovableDrives():
324 return jsonify([d["name"] for d in externalDriveManager().getRemovableDrives()])
325
326@api.route("/files/eject", methods=["POST"])
327@restricted_access

Callers

nothing calls this directly

Calls 2

externalDriveManagerFunction · 0.90
getRemovableDrivesMethod · 0.45

Tested by

no test coverage detected