102件ヒット
[101-102件を表示]
(0.067秒)
ライブラリ
- pathname (60)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - tempfile (24)
クラス
- Pathname (60)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - Tempfile (24)
検索結果
-
Pathname
# realpath(basedir = nil) -> Pathname (7.0) -
余計な "."、".." や "/" を取り除いた新しい Pathname オブジェクトを返します。
...略するとカレントディレクトリになります。
//emlist[例][ruby]{
require 'pathname'
Dir.rmdir("/tmp/foo") rescue nil
File.unlink("/tmp/bar/foo") rescue nil
Dir.rmdir("/tmp/bar") rescue nil
Dir.mkdir("/tmp/foo")
Dir.mkdir("/tmp/bar")
File.symlink("../foo", "/tmp/bar/foo"...