private void ExecuteRename(string rename) { fs.Files.ExecuteRenameOperation(new RenameFileOperation { FileSystem = fs.Name, Name = fileName, Rename = rename, MetadataAfterOperation = metadata.DropRenameMarkers() }); }
private void ExecuteRename(string rename) { Etag currentEtag = null; fs.Storage.Batch(accessor => { currentEtag = accessor.ReadFile(fileName).Etag; }); fs.Files.ExecuteRenameOperation(new RenameFileOperation(fileName, rename, currentEtag, sourceMetadata.DropRenameMarkers())); }