cd method

  1. @override
String cd(
  1. String path
)
override

Change current directory. Maps to: cd <path>

Supports:

  • Absolute paths: /path/to/dir
  • Relative paths: ./subdir, ../parent
  • Home expansion: ~/documents
  • Data directory shortcut: - (returns to ~/.tom/d4rt)

Returns the new absolute path. Throws DirectoryNotFoundException if directory doesn't exist.

Implementation

@override
String cd(String path) {
  return _state.cd(path);
}