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