From e7fc3dcd31705b6efa441f1082015bb713436c3f Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 20 Mar 2019 09:40:04 +0000 Subject: [PATCH] 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. --- fs/dir.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/dir.go b/fs/dir.go index 891dc8d63..c90c1222f 100644 --- a/fs/dir.go +++ b/fs/dir.go @@ -28,6 +28,7 @@ func NewDirCopy(d Directory) *Dir { modTime: d.ModTime(), size: d.Size(), items: d.Items(), + id: d.ID(), } }