As the title says, how do I get the unarchived folder from a zip folder extracted with ZipFoundation?
I want to show the extracted file/folder with the click of button (“Show in Finder”) after it’s done being extracted.
I have the following code:
func ShowInFinderButton() -> some View {
Button {
if let destination = destinationDirectory {
NSWorkspace.shared.activateFileViewerSelecting([destination])
}
} label: {
Text("Show in Finder")
}
}
but the destinationDirctory
is not what I want as it shows the folder that encloses the original archive.
Any advice on how to do so would be greatly appreciated.