add proper constants for node type
This commit is contained in:
parent
3b438e5c7c
commit
ca1e5e10b6
42 changed files with 206 additions and 206 deletions
|
@ -25,7 +25,7 @@ func inodeFromName(parent uint64, name string) uint64 {
|
|||
|
||||
// inodeFromNode generates an inode number for a file within a snapshot.
|
||||
func inodeFromNode(parent uint64, node *restic.Node) (inode uint64) {
|
||||
if node.Links > 1 && node.Type != "dir" {
|
||||
if node.Links > 1 && node.Type != restic.NodeTypeDir {
|
||||
// If node has hard links, give them all the same inode,
|
||||
// irrespective of the parent.
|
||||
var buf [16]byte
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue