I'm trying to unzip a folder with 7Zip, which works nicely. Unfortunately, 7Zip does not delete unnecessary files that may already be in the Folder . For zipping, there is the option u -uq0 to synchronize the zip, is that also available when unpacking? I haven't managed to get it running this way.
I tried this:
startInfo.Arguments = $"x -y \"{sourcefilePath}\" -o\"{Settings.Default.Local_ProjektPath}{supDirName}\" "; // Befehl zum Entpacken der Datei
This code will unzip the folder and overwrite all previous files, but will not delete unnecessary files in the folder.
I also thought of simply deleting the folder beforehand, but this is only a stopgap solution, since they are large folders and they have attributes that make it difficult to delete