nodejsscript • Docs
nodejsscript / s / DirsFunction
DirsFunction(
options
):ShellArray
Clears the directory stack by deleting all of the elements.
• options: "-c"
Clears the directory stack by deleting all of the elements.
Returns an array of paths in the stack, or a single path if +N or -N was specified.
DirsFunction(
options
):ShellString
Displays the list of currently remembered directories.
• options: "+N"
Displays the Nth directory (counting from the left of the list printed by dirs when invoked without options), starting with zero.
Returns an array of paths in the stack, or a single path if +N or -N was specified.
DirsFunction(
options
):ShellString
Displays the list of currently remembered directories.
• options: "-N"
Displays the Nth directory (counting from the right of the list printed by dirs when invoked without options), starting with zero.
Returns an array of paths in the stack, or a single path if +N or -N was specified.
DirsFunction(
options
):ShellString
|ShellArray
Displays the list of currently remembered directories.
• options: string
Available options:
- -c
: Clears the directory stack by deleting all of the elements.
- -N
: Displays the Nth directory (counting from the right of the list
printed by dirs when invoked without options), starting with zero.
- +N
: Displays the Nth directory (counting from the left of the list
printed by dirs when invoked without options), starting with zero.
Returns an array of paths in the stack, or a single path if +N or -N was specified.