12件ヒット
[1-12件を表示]
(0.089秒)
ライブラリ
- ビルトイン (12)
検索結果
-
File
. realpath(pathname , basedir = nil) -> String (24320.0) -
与えられた pathname に対応する絶対パスを返します。
...与えられた pathname に対応する絶対パスを返します。
pathname の全てのコンポーネントは存在しなければなりません。
@param pathname ファイル名を指定します。
@param basedir ベースディレクトリを指定します。省略するとカレン......T ファイルが存在しない場合に発生します。
//emlist[例][ruby]{
ENV["HOME"] # => "/home/matz"
File.symlink("testfile", "testlink")
File.realpath("testfile") # => "/home/matz/testfile"
File.realpath("testlink") # => "/home/matz/testfile"
File.realpath......("..", "/tmp") # => "/"
//}...