MCPcopy Create free account
hub / github.com/dedsec1121fk/DedSec / _safe_report_att_path

Function _safe_report_att_path

Scripts/ButSystem.py:17338–17354  ·  view source on GitHub ↗

Return a verified absolute path for report attachments, else None.

(stored_path: str)

Source from the content-addressed store, hash-verified

17336 conn.close()
17337 try:
17338 if sp and os.path.exists(sp):
17339 os.remove(sp)
17340 except Exception:
17341 pass
17342 flash("Attachment deleted.")
17343 return redirect(url_for("profiler"))
17344
17345# ---------------------------
17346# Admin browse user files
17347# ---------------------------
17348@app.route("/admin/files/<username>")
17349@login_required
17350def admin_user_files(username: str):
17351 """admin_user_files.
17352
17353Admin-only route handler.
17354
17355This docstring was expanded to make future maintenance easier.
17356
17357Args:

Callers 1

report_att_downloadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected