From d2105a5085d1ae01831e929476f791a0a2c23eb6 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Tue, 7 Apr 2015 21:57:07 +0200 Subject: [PATCH] Node: Also store ModeType bits in Mode This fixes #120 --- node.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.go b/node.go index 0729493d0..053f181fc 100644 --- a/node.go +++ b/node.go @@ -61,7 +61,7 @@ func NodeFromFileInfo(path string, fi os.FileInfo) (*Node, error) { node := &Node{ path: path, Name: fi.Name(), - Mode: fi.Mode() & os.ModePerm, + Mode: fi.Mode() & (os.ModePerm | os.ModeType), ModTime: fi.ModTime(), }