remove nlink property from directory node
This commit is contained in:
@@ -71,7 +71,6 @@ func (f *Filer) CreateEntry(entry *Entry) (error) {
|
||||
Mode: os.ModeDir | 0660,
|
||||
Uid: entry.Uid,
|
||||
Gid: entry.Gid,
|
||||
Nlink: 2,
|
||||
},
|
||||
}
|
||||
|
||||
@@ -102,9 +101,6 @@ func (f *Filer) CreateEntry(entry *Entry) (error) {
|
||||
if err := f.store.InsertEntry(entry); err != nil {
|
||||
return fmt.Errorf("insert entry %s: %v", entry.FullPath, err)
|
||||
}
|
||||
if err := f.store.AddDirectoryLink(lastDirectoryEntry, 1); err != nil {
|
||||
return fmt.Errorf("insert entry %s: %v", entry.FullPath, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user