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

Function getLogFiles

src/octoprint/server/api/log.py:21–23  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19@restricted_access
20@admin_permission.require(403)
21def getLogFiles():
22 files = _getLogFiles()
23 return jsonify(files=files, free=getFreeBytes(settings().getBaseFolder("logs")))
24
25
26@api.route("/logs/<path:filename>", methods=["GET"])

Callers

nothing calls this directly

Calls 4

getFreeBytesFunction · 0.90
settingsFunction · 0.90
_getLogFilesFunction · 0.85
getBaseFolderMethod · 0.45

Tested by

no test coverage detected