MCPcopy Index your code
hub / github.com/geekcomputers/Python / app_name_from_path

Function app_name_from_path

JARVIS/apps.py:26–27  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

24
25
26def app_name_from_path(path):
27 return re.sub(r"\s+", " ", path.stem.replace(".lnk", "")).strip()
28
29
30def is_safe_app_path(path):

Callers 2

is_safe_app_pathFunction · 0.85
build_application_indexFunction · 0.85

Calls 1

subMethod · 0.80

Tested by

no test coverage detected