diff --git a/pkg/folderutil/parse.go b/pkg/folderutil/parse.go index 11a8916..5c1aaa5 100644 --- a/pkg/folderutil/parse.go +++ b/pkg/folderutil/parse.go @@ -2,6 +2,7 @@ package folderutil import ( "io/ioutil" + "os" "path/filepath" "regexp" "strings" @@ -37,7 +38,9 @@ func ParseConfig(c lazypath.Config) ([]ParsedFolder, error) { } for _, f := range fileInfo { - if !f.IsDir() { + if !f.IsDir() && f.Mode()&os.ModeSymlink == 0 { + cli.Debug("Not is directory or symlink: " + f.Name()) + cli.Debug(f.Mode().String()) continue } if !re.MatchString(f.Name()) {