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:
This means that crypt which wraps directory objects will retain the ID of the underlying object.