public bool FileExists(string filePath) { try { return(_files.FileExists(filePath)); } catch (Exception e) { throw new RemoteNodeException(_machine, e); } }
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; } }