Directory attachments appear with a generic folder icon. They should have an icon that matches what the folder (in case it’s a bundle) looks like in Finder.
<rdar://problem/45111300>
AppKit/NSFileWrapperExtensions.h adds an icon property to NSFileWrapper, which may be useful here.