Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created Jun 2, 2022
Embed
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