public void RegisterRename(string sourceFile, string destinationFile, Etag etag = null)
        {
			FileHeader existingEntity;
			if (etag == null && UseOptimisticConcurrency && entitiesByKey.TryGetValue(sourceFile, out existingEntity))
			{
				if (IsDeleted(sourceFile) == false) // do not set etag if we already know that file was deleted
					etag = existingEntity.Etag;
			}

            var operation = new RenameFileOperation(this, sourceFile, destinationFile, etag);

            IncrementRequestCount();

            registeredOperations.Enqueue(operation);
        }
        public void RegisterRename(string sourceFile, string destinationFile)
        {
            var operation = new RenameFileOperation(this, sourceFile, destinationFile);

            IncrementRequestCount();

            registeredOperations.Enqueue(operation);
        }