Node: Also store ModeType bits in Mode

This fixes #120
This commit is contained in:
Alexander Neumann 2015-04-07 21:57:07 +02:00
parent 8fb032b590
commit d2105a5085

View file

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