ライブラリ
- ビルトイン (2)
-
net
/ ftp (2) - pathname (5)
- rake (2)
-
rubygems
/ indexer (2) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ reader / entry (1) - shell (1)
-
shell
/ command-processor (1) -
shell
/ filter (1)
クラス
-
File
:: Stat (2) -
Gem
:: Indexer (2) -
Gem
:: Installer (1) -
Gem
:: Package :: TarReader :: Entry (1) -
Net
:: FTP :: MLSxEntry (2) - Pathname (5)
- Shell (1)
-
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1)
モジュール
- Kernel (2)
キーワード
- children (1)
-
dest
_ directory (1) - directory? (7)
-
directory
_ makable? (1) -
each
_ child (2) -
file
_ create (1) - ftype (1)
-
relative
_ path _ from (1) - unpack (1)
検索結果
先頭5件
-
Kernel
# directory(dir) -> () (72625.0) -
与えられたディレクトリを作成するタスクを定義します。
与えられたディレクトリを作成するタスクを定義します。
@param dir 作成するディレクトリを指定します。
例:
directory 'testdata/doc' -
Gem
:: Indexer # directory -> String (72607.0) -
インデックスをビルドするための一時的なディレクトリを返します。
インデックスをビルドするための一時的なディレクトリを返します。 -
Pathname
# directory? -> bool (36673.0) -
FileTest.directory?(self.to_s) と同じです。
FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory? -
File
:: Stat # directory? -> bool (36643.0) -
ディレクトリの時に真を返します。
ディレクトリの時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).directory? #=> false
//}
@see FileTest.#directory? -
Shell
# directory?(file) -> bool (36625.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: CommandProcessor # directory?(file) -> bool (36625.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Shell
:: Filter # directory?(file) -> bool (36625.0) -
FileTest モジュールにある同名のクラスメソッドと同じです.
FileTest モジュールにある同名のクラスメソッドと同じです.
@param file ファイル名を表す文字列か IO オブジェクトを指定します。
@see FileTest.#directory? -
Gem
:: Indexer # dest _ directory -> String (36607.0) -
インデックスを保存するディレクトリを返します。
インデックスを保存するディレクトリを返します。 -
Gem
:: Package :: TarReader :: Entry # directory? -> bool (36607.0) -
自身がディレクトリであれば、真を返します。 そうでない場合は、偽を返します。
自身がディレクトリであれば、真を返します。
そうでない場合は、偽を返します。 -
Net
:: FTP :: MLSxEntry # directory? -> bool (36607.0) -
エントリがディレクトリであれば true を返します。
エントリがディレクトリであれば true を返します。
Net::FTP::MLSxEntry#type が "dir"、 "pdir"、 "cdir"、
のいずれかであれば true を返します。 -
Net
:: FTP :: MLSxEntry # directory _ makable? -> bool (36607.0) -
ディレクトリを作成可能ならば true を返します。
ディレクトリを作成可能ならば true を返します。
Net::FTP#mkdir でディレクトリを作成可能かどうかを意味します。 -
Pathname
# relative _ path _ from(base _ directory) -> Pathname (27727.0) -
base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。
base_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。
パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。
self が相対パスなら base_directory も相対パス、self が絶対パスなら
base_directory も絶対パスでなければなりません。
@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。
@raise ArgumentError Windows上でドライブが違うなど、base_direct... -
File
:: Stat # ftype -> String (18340.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... -
Kernel
# file _ create(*args) { . . . } -> Rake :: FileCreationTask (18322.0) -
ファイルを作成するタスクを定義します。
ファイルを作成するタスクを定義します。
主に Kernel.#directory を定義するために使用します。 -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (10276.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] (9925.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 (9676.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... -
Gem
:: Installer # unpack(directory) (9625.0) -
与えられたディレクトリに Gem を展開します。
与えられたディレクトリに Gem を展開します。
@param directory Gem を展開するディレクトリを指定します。