|
@@ -25,6 +25,10 @@ func IsHidden(filename string, recursive bool) (bool, error) {
|
|
|
filename = filepath.ToSlash(filename)
|
|
|
chunks := strings.Split(filename, "/")
|
|
|
for _, chunk := range chunks {
|
|
|
+ if strings.TrimSpace(chunk) == "" {
|
|
|
+ //Empty chunk. Skip this
|
|
|
+ continue
|
|
|
+ }
|
|
|
hiddenState, _ := isHidden(strings.TrimSpace(chunk))
|
|
|
if hiddenState {
|
|
|
return true, nil
|