るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.022秒)
トップページ > クエリ:http[x] > バージョン:2.3.0[x] > クラス:Dir[x]

別のキーワード

  1. net/http get
  2. http get
  3. http start
  4. net/http start
  5. net/http post

ライブラリ

検索結果

Dir.chroot(path) -> 0 (22.0)

ルートディレクトリを path に変更します。

...トリのパスを文字列で指定します。

@raise Errno::EXXX 失敗した場合に発生します。

//emlist[例][ruby]{
p Dir.glob("*") #=> ["file1", "file2]
Dir
.chroot("./")
p Dir.glob("/*") #=> ["/file1", "/file2]
//}

@see http://opengroup.org/onlinepubs/007908799/xsh/chroot.html...