Skip to content

Commit 4a86b7b

Browse files
committed
fix hidden file detection on windows
License: MIT Signed-off-by: Jeromy <[email protected]>
1 parent 7b2d9ad commit 4a86b7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commands/files/is_hidden_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func IsHidden(f File) bool {
1616
return true
1717
}
1818

19-
p, e := syscall.UTF16PtrFromString(f.FileName())
19+
p, e := syscall.UTF16PtrFromString(f.FullPath())
2020
if e != nil {
2121
return false
2222
}

0 commit comments

Comments
 (0)