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

Function eject

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

Source from the content-addressed store, hash-verified

326@api.route("/files/eject", methods=["POST"])
327@restricted_access
328def eject():
329 return jsonify(externalDriveManager().eject(request.values.get('drive')))
330
331@api.route("/files/local-file-exists/<string:filename>", methods=["GET"])
332@restricted_access

Callers

nothing calls this directly

Calls 3

externalDriveManagerFunction · 0.90
ejectMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected