2
2
mirror of https://github.com/octoleo/restic.git synced 2024-05-31 16:10:49 +00:00

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