public void Cd(string inputPath) { var relative = GetPathModel(inputPath); if (relative is AbsolutePathModel) { throw new InvalidPathException("Cannot move to absolut path"); //_model = relative; } if (relative is RelativePathModel) { _model.Cd(relative as RelativePathModel); } }