MCPcopy Create free account
hub / github.com/OpenListTeam/OpenList / PathEqual

Function PathEqual

pkg/utils/path.go:37–39  ·  view source on GitHub ↗

PathEqual judge path is equal

(path1, path2 string)

Source from the content-addressed store, hash-verified

35
36// PathEqual judge path is equal
37func PathEqual(path1, path2 string) bool {
38 return FixAndCleanPath(path1) == FixAndCleanPath(path2)
39}
40
41func IsSubPath(path string, subPath string) bool {
42 path, subPath = FixAndCleanPath(path), FixAndCleanPath(subPath)

Callers 10

GetRootMethod · 0.92
MoveMethod · 0.92
GetRootMethod · 0.92
MoveMethod · 0.92
ListMethod · 0.92
ArchiveGetFunction · 0.92
MoveFunction · 0.92
RenameFunction · 0.92
RemoveFunction · 0.92
MetaCoversPathFunction · 0.92

Calls 1

FixAndCleanPathFunction · 0.85

Tested by

no test coverage detected