Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "process/chdir/docs/types/index.d"

Index

Functions

Functions

Export assignment chdir

  • chdir(path: string): Error | null
  • Changes the current working directory.

    Notes

    • If unable to set the current working directory (e.g., due to a non-existent path), the function returns an error; otherwise, the function returns null.

    Parameters

    • path: string

      desired working directory

    Returns Error | null

    error object or null

    Example

    var err = chdir( __dirname );
    if ( err ) {
        throw err;
    }