init(compressedContentsOfDirectory:)
Declaration
convenience init(compressedContentsOfDirectory url: URL)Discussion
Creates an attachment with an existing directory on disk. Automatically zips the directory, the content type is “public.zip-archive”.