From 4a86b7b6b9d0cb039c82851940a08101756c11dd Mon Sep 17 00:00:00 2001 From: Jeromy Date: Fri, 24 Mar 2017 12:21:43 -0700 Subject: [PATCH] fix hidden file detection on windows License: MIT Signed-off-by: Jeromy --- commands/files/is_hidden_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/files/is_hidden_windows.go b/commands/files/is_hidden_windows.go index 5d2639310..896437cf1 100644 --- a/commands/files/is_hidden_windows.go +++ b/commands/files/is_hidden_windows.go @@ -16,7 +16,7 @@ func IsHidden(f File) bool { return true } - p, e := syscall.UTF16PtrFromString(f.FileName()) + p, e := syscall.UTF16PtrFromString(f.FullPath()) if e != nil { return false }