コード例 #1
0
 public bool FileExists(string filePath)
 {
     try
     {
         return(_files.FileExists(filePath));
     }
     catch (Exception e)
     {
         throw new RemoteNodeException(_machine, e);
     }
 }
コード例 #2
0
        public bool FileExists(string fileName)
        {
            var operation = _operationTracker.BeginFileExists(fileName);

            try
            {
                var exists = _files.FileExists(fileName);
                operation.Success();
                return(exists);
            }
            catch (Exception e)
            {
                operation.Failed(e);
                throw;
            }
        }