convert method

  1. @override
Directory convert(
  1. String input
)
override

Converts input and returns the result of the conversion.

Implementation

@override
Directory convert(String input) {
  final directory = Directory(input);
  if (directory.existsSync()) {
    return directory;
  }
  throw ShellResultConversionException(Directory, input);
}