public async Task DeleteFileAsync(string filePath) { try { await _files.DeleteFileAsync(filePath); } catch (Exception e) { throw new RemoteNodeException(_machine, e); } }
public void DeleteFile(string destinationFilePath) { var operation = _operationTracker.BeginDeleteFile(destinationFilePath); try { _files.DeleteFileAsync(destinationFilePath).Wait(); operation.Success(); } catch (Exception e) { operation.Failed(e); throw; } }