Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created June 2, 2022 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/2d19c4dfa2a67ee49b3c98b893d3679f to your computer and use it in GitHub Desktop.
Save lgolubyev/2d19c4dfa2a67ee49b3c98b893d3679f to your computer and use it in GitHub Desktop.
// Extracts the contents of a tar archive into the specified directory, but avoids overwriting anything found inside
TarFile.ExtractToDirectory(sourceFileName: "/home/dotnet/destination.tar", destinationDirectoryName: "/home/dotnet/DestinationDirectory/", overwriteFiles: false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment