current property
Directory
current
Creates a directory object pointing to the current working directory.
Implementation
static file.Directory get current => Directory(process.cwd());
void
current=(dynamic path)
Sets the current working directory of the Dart process including all running isolates. The new value set can be either a Directory or a String.
The new value is passed to the OS's system call unchanged, so a relative path passed as the new working directory will be resolved by the OS.
Implementation
static set current(path) {
path = (path is file.Directory) ? path.path : path;
assert(path is String);
process.chdir(path);
}