Skip to content

Use path_isin instead of startswith to compare filepaths #2823

@skshetry

Description

@skshetry

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 with startswith can be replaced with this new function.

Refactor usage of startswith for paths with path_isin.

Metadata

Metadata

Assignees

Labels

enhancementEnhances DVCp2-mediumMedium priority, should be done, but less importantrefactoringFactoring and re-factoring

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions