This PR updates existing backends to implement the `IRenameEnabledBackend` interface, allowing for more efficient file renaming operations. The implementation varies by backend, with some using native rename operations and others falling back to copy-and-delete patterns.
23 lines
567 B
C#
23 lines
567 B
C#
using Newtonsoft.Json;
|
|
|
|
namespace Duplicati.Library.Backend.Backblaze.Model
|
|
{
|
|
public class CopyFileRequest
|
|
{
|
|
[JsonProperty("sourceFileId")]
|
|
public string SourceFileId { get; set; }
|
|
|
|
[JsonProperty("fileName")]
|
|
public string FileName { get; set; }
|
|
|
|
[JsonProperty("metadataDirective")]
|
|
public string MetadataDirective { get; set; } = "COPY";
|
|
|
|
public CopyFileRequest(string sourceFileId, string fileName)
|
|
{
|
|
SourceFileId = sourceFileId;
|
|
FileName = fileName;
|
|
}
|
|
}
|
|
}
|