MCPcopy
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
21def _id_from_path(path):
22 try:
23 return path.strip("/").split("/")[-1]
24 except IndexError:
25 return ""
26
27
28def _mapping_from_cursor(cur):

Callers 2

_mapping_from_cursorFunction · 0.85
_build_parent_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected