fix: issues
This commit is contained in:
@@ -27,3 +27,11 @@ func GetSubDirs(root string) ([]string, error) {
|
||||
|
||||
return paths, nil
|
||||
}
|
||||
|
||||
func DirExists(path string) bool {
|
||||
st, err := os.Stat(path)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return st.IsDir()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user