src/NuGetGallery.Core/Services/ICoreFileStorageService.cs
/// <summary>
/// Copies the source URI to the destination file. If the destination already exists and the content
/// is different, an exception should be thrown. If the file already exists, the implementation can choose to
/// no-op if the content is the same instead of throwing an exception. This method should throw if the source
/// file does not exist.
/// </summary>
/// <param name="srcUri">The URI of the source file.</param>
/// <param name="destFolderName">The destination folder.</param>
/// <param name="destFileName">The destination file name or relative file path.</param>
/// <param name="destAccessCondition">
/// The access condition used to determine whether the destination is in the expected state.
/// </param>
/// <returns>
/// The etag of the source file. This can be used if the destination file is later intended to replace
/// the source file in conjunction with <paramref name="destAccessCondition"/>.
/// </returns>
Copies the source URI to the destination file. If the destination already exists and the content
is different, an exception should be thrown. If the file already exists, the implementation can choose to
no-op if the content is the same instead of throwing an exception. This method should throw if the source
file does not exist.
Copies the source URI to the destination file . If the destination already exists and the content is different an exception should be thrown . If the file already exists the implementation can choose to no - op if the content is the same instead of throwing an exception . This method should throw if the source file does not exist .
Task CopyFileAsync(
            Uri srcUri,
            string destFolderName,
            string destFileName,
            IAccessCondition destAccessCondition);
Task CopyFileAsync ( Uri srcUri , string destFolderName , string destFileName , IAccessCondition destAccessCondition ) ;
Copies the source URI to the destination file.
Copies the source URI to the destination file .
The etag of the source file. This can be used if the destination file is later intended to replace
the source file in conjunction with .
The etag of the source file . This can be used if the destination file is later intended to replace the source file in conjunction with .
srcUri
Uri
The URI of the source file.
The URI of the source file .
destFolderName
string
The destination folder.
The destination folder .
destFileName
string
The destination file name or relative file path.
The destination file name or relative file path .
destAccessCondition
IAccessCondition
The access condition used to determine whether the destination is in the expected state.
The access condition used to determine whether the destination is in the expected state .