Avoid temporary directory when creating an archive with a single resource