Use path_isin instead of startswith to compare filepaths #2823
Labels
enhancement
Enhances DVC
p2-medium
Medium priority, should be done, but less important
refactoring
Factoring and re-factoring
The PR #2798 introduced
dvc.utils.fs.path_isin
that can be used to compare child paths and parent paths and therefore, raw string compare withstartswith
can be replaced with this new function.Refactor usage of
startswith
for paths withpath_isin
.The text was updated successfully, but these errors were encountered: