Commits

mpl  committed 93e4ec3

bugfix

  • Participants
  • Parent commits a4368fc

Comments (0)

Files changed (1)

 	var fi os.FileInfo
 	for _, v := range names {
 		line = nodirflag + indents + v + "\n"
-		isNotHidden := !strings.Contains(v, ".")
+		isNotHidden := !strings.HasPrefix(v, ".")
 		if isNotHidden || showHidden {
 			fullpath = path.Join(dirpath, v)
 			fi, err = os.Stat(fullpath)