Skip to content

Commit

Permalink
Extend comment explaining the order of entries.
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds committed Jun 30, 2023
1 parent 06effa4 commit ca989c1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,7 @@ private static async Task CreateFromDirectoryInternalAsync(string sourceDirector
private static IEnumerable<(string fullpath, string entryname)> GetFilesForCreation(string sourceDirectoryName, int basePathLength)
{
// The default order to write a tar archive is to recurse into subdirectories first.
// This order is expected by 'tar' to restore directory timestamps properly without the user explicitly specifying `--delay-directory-restore`.
// FileSystemEnumerable RecurseSubdirectories will first write further entries before recursing, so we don't use it here.

var fse = new FileSystemEnumerable<(string fullpath, string entryname, bool recurse)>(
Expand Down

0 comments on commit ca989c1

Please sign in to comment.