cd abstract method

String cd(
  1. String path
)

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

String cd(String path);