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(), }