public void RegisterFileDeletion(FileHeader file, Etag etag = null)
        {
			deletedEntities.Add(file.Directory);

			var operation = new DeleteFileOperation(this, file.Directory, etag);

            IncrementRequestCount();

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

	        deletedEntities.Add(path);

            var operation = new DeleteFileOperation(this, path, etag);

            IncrementRequestCount();

            registeredOperations.Enqueue(operation);
        }
        public void RegisterFileDeletion(string path, Etag etag = null)
        {
	        deletedEntities.Add(path);

            var operation = new DeleteFileOperation(this, path, etag);

            IncrementRequestCount();

            registeredOperations.Enqueue(operation); 
        }