9 references to DestinationPath
Microsoft.DotNet.Arcade.Sdk (9)
src\DownloadFile.cs (9)
61
if (File.Exists(
DestinationPath
) && !Overwrite)
71
Directory.CreateDirectory(Path.GetDirectoryName(
DestinationPath
));
115
Log.LogMessage($"Copying '{filePath}' to '{
DestinationPath
}'");
116
File.Copy(filePath,
DestinationPath
, overwrite: true);
124
Log.LogMessage($"Downloading '{uri}' to '{
DestinationPath
}'");
137
Log.LogMessage($"Download of '{uri}' to '{
DestinationPath
}' has been cancelled.");
168
using (var outStream = File.Create(
DestinationPath
))
187
Log.LogMessage($"Failed to download '{uri}' to '{
DestinationPath
}': {e.Message}");
191
Log.LogMessage($"Retrying download of '{uri}' to '{
DestinationPath
}' due to failure: '{e.Message}' ({attempt}/{Retries})");