Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/treeverse/dvc
/ normalize_path
Function
normalize_path
dvc/utils/fs.py:78–79 ·
view source on GitHub ↗
(path)
Source
from the content-addressed store, hash-verified
76
""
"Check if given `child` path is inside `parent`."
""
77
78
def
normalize_path(path) -> str:
79
return
os.path.normcase(os.path.normpath(path))
80
81
parent = os.path.join(normalize_path(parent),
""
)
82
child = normalize_path(child)
Callers
1
path_isin
Function · 0.85
Calls
1
normpath
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…