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

Function localFileExists

src/astroprint/api/files.py:333–334  ·  view source on GitHub ↗
(filename)

Source from the content-addressed store, hash-verified

331@api.route("/files/local-file-exists/<string:filename>", methods=["GET"])
332@restricted_access
333def localFileExists(filename):
334 return jsonify({'response': externalDriveManager().localFileExists(filename)})
335
336@api.route("/files/copy-to-local", methods=["POST"])
337@restricted_access

Callers

nothing calls this directly

Calls 2

externalDriveManagerFunction · 0.90
localFileExistsMethod · 0.45

Tested by

no test coverage detected