File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -771,15 +771,16 @@ public void Dispose()
771
771
}
772
772
773
773
/// <summary>
774
- /// Computes a unique temp directory for the packages associated
775
- /// with this source tree. Use a SHA1 of the directory name.
774
+ /// Returns the full path to a temporary directory with the given subfolder name.
776
775
/// </summary>
777
- /// <returns>The full path of the temp directory.</returns>
778
776
private static string ComputeTempDirectoryPath ( string subfolderName )
779
777
{
780
778
return Path . Combine ( FileUtils . GetTemporaryWorkingDirectory ( out _ ) , subfolderName ) ;
781
779
}
782
780
781
+ /// <summary>
782
+ /// Computes a unique temporary directory path based on the source directory and the subfolder name.
783
+ /// </summary>
783
784
private static string ComputeTempDirectoryPath ( string srcDir , string subfolderName )
784
785
{
785
786
return Path . Combine ( FileUtils . GetTemporaryWorkingDirectory ( out _ ) , FileUtils . ComputeHash ( srcDir ) , subfolderName ) ;
Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ public static void TryDelete(string file)
86
86
}
87
87
88
88
/// <summary>
89
- /// Computes the hash of <paramref name="filePath"/>.
89
+ /// Computes the hash of the file at <paramref name="filePath"/>.
90
90
/// </summary>
91
91
public static string ComputeFileHash ( string filePath )
92
92
{
@@ -95,6 +95,9 @@ public static string ComputeFileHash(string filePath)
95
95
return GetHashString ( sha ) ;
96
96
}
97
97
98
+ /// <summary>
99
+ /// Computes the hash of <paramref name="input"/>.
100
+ /// </summary>
98
101
public static string ComputeHash ( string input )
99
102
{
100
103
var bytes = Encoding . Unicode . GetBytes ( input ) ;
You can’t perform that action at this time.
0 commit comments