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

Function _is_loopback

Scripts/ButSystem.py:3587–3601  ·  view source on GitHub ↗

_is_loopback. Internal helper function. This docstring was added automatically to improve maintainability. Args: ip: Parameter. Returns: Varies.

(ip: str)

Source from the content-addressed store, hash-verified

3585 p = os.path.join(STORAGE_DIR, username)
3586 os.makedirs(p, exist_ok=True)
3587 return p
3588
3589def safe_relpath(p: str) -> str:
3590 """safe_relpath.
3591
3592Internal helper function.
3593
3594This docstring was added automatically to improve maintainability.
3595
3596Args:
3597 p: Parameter.
3598
3599Returns:
3600 Varies.
3601"""
3602 p = (p or "").replace("\\", "/").strip()
3603 if p in ("", ".", "/"):
3604 return ""

Callers 2

_client_ipFunction · 0.70
_is_local_admin_requestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected