るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.049秒)

別のキーワード

  1. stringio read
  2. _builtin read
  3. io read
  4. csv read
  5. pathname read

ライブラリ

クラス

検索結果

File.readlink(path) -> String (24220.0)

シンボリックリンクのリンク先のパスを文字列で返します。

...XX 指定された path がシンボリックリンクでない場合や、リンクの読み取りに失敗した場合に発生します。

//emlist[例:][ruby]{
IO
.write("testfile", "test")
File.symlink("testfile", "testlink") # => 0
File.readlink("testlink") # => "testfile"
//}...