Skip to content
This repository has been archived by the owner on Mar 29, 2023. It is now read-only.

Commit

Permalink
fix IsHidden on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k committed Nov 5, 2018
1 parent cfdeccb commit b0b422e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion is_hidden_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func IsHidden(name string, f File) bool {

fName := filepath.Base(f.FileName())
fName := filepath.Base(name)

if strings.HasPrefix(fName, ".") && len(fName) > 1 {
return true
Expand Down

0 comments on commit b0b422e

Please sign in to comment.