40件ヒット
[1-40件を表示]
(0.217秒)
ライブラリ
- ビルトイン (11)
- pathname (11)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
-
File
:: Stat (11) - Pathname (11)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
検索結果
先頭5件
-
File
:: Stat # nlink -> Integer (27208.0) -
ハードリンクの数を返します。
...ハードリンクの数を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.nlink #=> 1
//}... -
Shell
:: CommandProcessor # unlink(path) -> self (15301.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Shell
# unlink(path) -> self (12301.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Shell
:: Filter # unlink(path) -> self (12301.0) -
path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
...path がファイルなら File.unlink、path がディレクトリなら Dir.unlink の動作をします。
@param path 削除したいパスを指定します。
@see File.unlink, Dir.unlink... -
Pathname
# unlink -> Integer (12201.0) -
self が指すディレクトリあるいはファイルを削除します。
...self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...