22件ヒット
[1-22件を表示]
(0.118秒)
クラス
-
File
:: Stat (11) - Pathname (11)
検索結果
-
File
:: Stat # nlink -> Integer (18208.0) -
ハードリンクの数を返します。
...ハードリンクの数を返します。
//emlist[][ruby]{
fs = File::Stat.new($0)
#例
p fs.nlink #=> 1
//}... -
Pathname
# unlink -> Integer (3201.0) -
self が指すディレクトリあるいはファイルを削除します。
...self が指すディレクトリあるいはファイルを削除します。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("/path/to/sample")
pathname.exist? # => true
pathname.unlink # => 1
pathname.exist? # => false
//}...