feat: get root folder file

This commit is contained in:
Noah Hsu
2022-06-13 14:53:44 +08:00
parent 3135775250
commit 3e8f36e9f3
2 changed files with 21 additions and 4 deletions

View File

@ -11,6 +11,7 @@ func StandardizationPath(path string) string {
return path
}
// PathEqual judge path is equal
func PathEqual(path1, path2 string) bool {
return StandardizationPath(path1) == StandardizationPath(path2)
}