Пример #1
0
 public async Task CreateDirectoryAsync(string destinationDirectoryPath)
 {
     try
     {
         await _files.CreateDirectoryAsync(destinationDirectoryPath);
     }
     catch (Exception e)
     {
         throw new RemoteNodeException(_machine, e);
     }
 }
Пример #2
0
        public void CreateDirectory(string destinationDirectoryPath)
        {
            var operation = _operationTracker.BeginCreateDirectory(destinationDirectoryPath);

            try
            {
                _files.CreateDirectoryAsync(destinationDirectoryPath).Wait();
                operation.Success();
            }
            catch (Exception e)
            {
                operation.Failed(e);
                throw;
            }
        }
Пример #3
0
 private void CreateDirectoryPrivate(string destinationDirectoryPath)
 {
     _files.CreateDirectoryAsync(destinationDirectoryPath).Wait();
 }