ShellJS - にほんご。

pwd()

更新日: 2018-09-11

pwd()

カレントディレクトリを返します。


使用例

カレントディレクトリを表示します。

構造
root
`-- data_dir
   |-- data1.csv
   `-- data2.csv
JavaScript
var sh = require('shelljs');
sh.cd('./data_dir');
sh.echo(sh.pwd());
結果
$ node sample.js
root/data_dir


© 2012 Artur Adib Released under the BSD License. See LICENSE file for details.

このコンテンツはArtur Adib(arturadib)によるShellJSドキュメントを翻訳/改変したものです。