예제 #1
0
 private void ExecuteRename(string rename)
 {
     fs.Files.ExecuteRenameOperation(new RenameFileOperation
     {
         FileSystem             = fs.Name,
         Name                   = fileName,
         Rename                 = rename,
         MetadataAfterOperation = metadata.DropRenameMarkers()
     });
 }
예제 #2
0
        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()));
        }