MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isExactPathMatch

Function isExactPathMatch

agent/app/service/device_clean.go:596–607  ·  view source on GitHub ↗
(path string, excludePaths []string)

Source from the content-addressed store, hash-verified

594}
595
596func isExactPathMatch(path string, excludePaths []string) bool {
597 cleanPath := filepath.Clean(path)
598
599 for _, excludePath := range excludePaths {
600 cleanExclude := filepath.Clean(excludePath)
601 if cleanPath == cleanExclude {
602 return true
603 }
604 }
605
606 return false
607}
608
609func loadRollBackTree(fileOp fileUtils.FileOp) []dto.CleanTree {
610 var treeData []dto.CleanTree

Callers 2

loadUnknownSnapshotFunction · 0.85
loadFileOrDirWithExcludeFunction · 0.85

Calls 1

CleanMethod · 0.65

Tested by

no test coverage detected