Use archive_write_disk API to add directory contents