convert method
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);
}