9件ヒット
[1-9件を表示]
(0.178秒)
ライブラリ
- ビルトイン (1)
-
net
/ ftp (2) - pathname (3)
-
rubygems
/ indexer (2) -
rubygems
/ package / tar _ reader / entry (1)
クラス
-
File
:: Stat (1) -
Gem
:: Indexer (2) -
Gem
:: Package :: TarReader :: Entry (1) -
Net
:: FTP :: MLSxEntry (2) - Pathname (3)
キーワード
- children (1)
-
dest
_ directory (1) - directory? (2)
-
directory
_ makable? (1) -
each
_ child (2) - ftype (1)
検索結果
先頭5件
-
Gem
:: Indexer # directory -> String (72907.0) -
インデックスをビルドするための一時的なディレクトリを返します。
インデックスをビルドするための一時的なディレクトリを返します。 -
Gem
:: Package :: TarReader :: Entry # directory? -> bool (45607.0) -
自身がディレクトリであれば、真を返します。 そうでない場合は、偽を返します。
自身がディレクトリであれば、真を返します。
そうでない場合は、偽を返します。 -
Net
:: FTP :: MLSxEntry # directory? -> bool (45607.0) -
エントリがディレクトリであれば true を返します。
エントリがディレクトリであれば true を返します。
Net::FTP::MLSxEntry#type が "dir"、 "pdir"、 "cdir"、
のいずれかであれば true を返します。 -
Net
:: FTP :: MLSxEntry # directory _ makable? -> bool (45607.0) -
ディレクトリを作成可能ならば true を返します。
ディレクトリを作成可能ならば true を返します。
Net::FTP#mkdir でディレクトリを作成可能かどうかを意味します。 -
Gem
:: Indexer # dest _ directory -> String (36907.0) -
インデックスを保存するディレクトリを返します。
インデックスを保存するディレクトリを返します。 -
File
:: Stat # ftype -> String (18640.0) -
ファイルのタイプを表す文字列を返します。
ファイルのタイプを表す文字列を返します。
文字列は以下のうちのいずれかです。
"file"
"directory"
"characterSpecial"
"blockSpecial"
"fifo"
"link"
"socket"
"unknown"
//emlist[例][ruby]{
fs = File::Stat.new($0)
p fs.ftype #=> "file"
p File::Stat.new($:[0]).ftype #=> "directory"
//}
1.8 以降では、属性メソッドがシステムでサポートされていない場合 nil... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (10576.0) -
self.children(with_directory).each と同じです。
self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/us... -
Pathname
# children(with _ directory = true) -> [Pathname] (10225.0) -
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。
ただし、 ".", ".." は要素に含まれません。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/tmp").children # => [#<Pathname:.X11-unix>, #<Pathname:.iroha_unix>... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (9976.0) -
self.children(with_directory).each と同じです。
self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:/usr/local/etc>
# => #<Pathname:/usr/local/include>
# => #<Pathname:/us...