cwd method

String cwd()

Return a string representing the current working directory.

If the current directory can be reached via multiple paths (due to symbolic links), cwd() may return any one of them.

const currentWorkingDirectory = Deno.cwd();

Throws {@linkcode Deno.errors.NotFound} if directory not available.

Requires allow-read permission.

Implementation

_i2.String cwd() => _i3.callMethod(
      this,
      'cwd',
      [],
    );