fs: copy the ID too when we copy a Directory object

This means that crypt which wraps directory objects will retain the ID
of the underlying object.
This commit is contained in:
Nick Craig-Wood 2019-03-20 09:40:04 +00:00
parent 2386c5adc1
commit e7fc3dcd31

View File

@ -28,6 +28,7 @@ func NewDirCopy(d Directory) *Dir {
modTime: d.ModTime(),
size: d.Size(),
items: d.Items(),
id: d.ID(),
}
}