|
@@ -349,7 +349,7 @@ func insideHiddenFolder(path string) bool {
|
|
|
thisPathInfo := filepath.ToSlash(filepath.Clean(path))
|
|
|
pathData := strings.Split(thisPathInfo, "/")
|
|
|
for _, thispd := range pathData {
|
|
|
- if thispd[:1] == "." {
|
|
|
+ if len(thispd) > 0 && thispd[:1] == "." {
|
|
|
//This path contain one of the folder is hidden
|
|
|
return true
|
|
|
}
|