Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/lektor/lektor
/ _id_from_path
Function
_id_from_path
lektor/sourcesearch.py:21–25 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
19
20
21
def
_id_from_path(path):
22
try
:
23
return
path.strip(
"/"
).split(
"/"
)[-1]
24
except
IndexError:
25
return
""
26
27
28
def
_mapping_from_cursor(cur):
Callers
2
_mapping_from_cursor
Function · 0.85
_build_parent_path
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected