Skip to content

Instantly share code, notes, and snippets.

Created Jun 2, 2022
What would you like to do?
// Generates a tar archive where all the entry names are prefixed by the root directory 'SourceDirectory'
TarFile.CreateFromDirectory(sourceDirectoryName: "/home/dotnet/SourceDirectory/", destinationFileName: "/home/dotnet/destination.tar", includeBaseDirectory: true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment