Skip to content

Commit

Permalink
chore: update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Aug 22, 2024
1 parent 30f8125 commit 8a068ab
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions DownloadTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -740,8 +740,13 @@ internal static string[] GetOutputPaths(IReadOnlyCollection<List<string?>> files

private async Task DuplicateFile(string filesDir, IEnumerable<string> outputPaths, string path) {
if (!this.SupportsHardLinks) {
// if hard links aren't supported, copy the path to the first output
// path
// If hard links aren't supported, copy the path to the first output
// path.
// This is done because things reference the first output path
// assuming it will exist. A copy is made to not mess up the
// validity of the ExistingPathHashes and ExistingHashPaths
// dictionaries. The old file will be removed in the remove step if
// necessary.
var firstPath = outputPaths.FirstOrDefault();
if (firstPath == null) {
return;
Expand Down

0 comments on commit 8a068ab

Please sign in to comment.