github.com/boyter/gocodewalker@v1.3.2/hidden.go (about) 1 // SPDX-License-Identifier: MIT OR Unlicense 2 //go:build !windows 3 // +build !windows 4 5 package gocodewalker 6 7 import ( 8 "os" 9 ) 10 11 // IsHidden Returns true if file is hidden 12 func IsHidden(file os.FileInfo, directory string) (bool, error) { 13 return file.Name()[0:1] == ".", nil 14 }