Hi @tsolomko!
I was wondering if it is possible to create a TAR archive from a directory using SWCompression. The example below shows how this could be done using tar:
$ tar -cf archive.tar archive-folder
Right now I have this code:
// Both lines to add the folder.
let entry = TarContainer.Entry(info: .init(name: "folder-name", type: .directory), data: nil)
let entry = TarContainer.Entry(info: .init(name: "/path/to/folder-name", type: .directory), data: nil)
let data = try TarContainer.create(from: [entry])
Unfortunately, when I unarchive the tar.gz, folder-name, is an invalid directory.
Jeff
Hi @tsolomko!
I was wondering if it is possible to create a TAR archive from a directory using SWCompression. The example below shows how this could be done using
tar:Right now I have this code:
Unfortunately, when I unarchive the
tar.gz,folder-name, is an invalid directory.Jeff