るりまサーチ

最速Rubyリファレンスマニュアル検索!
206件ヒット [101-200件を表示] (0.100秒)

別のキーワード

  1. _builtin directory?
  2. pathname directory?
  3. rake directory
  4. stat directory?
  5. file directory?

検索結果

<< < 1 2 3 > >>

Net::FTP::MLSxEntry#directory_makable? -> bool (6102.0)

ディレクトリを作成可能ならば true を返します。

ディレクトリを作成可能ならば true を返します。

Net::FTP#mkdir でディレクトリを作成可能かどうかを意味します。

Pathname#relative_path_from(base_directory) -> Pathname (142.0)

base_directory から self への相対パスを求め、その内容の新しい Pathname オブジェクトを生成して返します。

...se_directory から self への相対パスを求め、その内容の新しい Pathname
オブジェクトを生成して返します。

パス名の解決は文字列操作によって行われ、ファイルシステムをアクセス
しません。

self が相対パスなら base_directory...
...が絶対パスなら
base_directory も絶対パスでなければなりません。

@param base_directory ベースディレクトリを表す Pathname オブジェクトを指定します。

@raise ArgumentError Windows上でドライブが違うなど、base_directory から self への相対...

Pathname#each_child(with_directory = true) -> Enumerator (125.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...

Pathname#each_child(with_directory = true) {|pathname| ...} -> [Pathname] (125.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...

Gem::Installer#unpack(directory) (108.0)

与えられたディレクトリに Gem を展開します。

...与えられたディレクトリに Gem を展開します。

@param directory Gem を展開するディレクトリを指定します。...

絞り込み条件を変える

Pathname#children(with_directory = true) -> [Pathname] (108.0)

self 配下にあるパス名(Pathnameオブジェクト)の配列を返します。

...にあるパス名(Pathnameオブジェクト)の配列を返します。

ただし、 ".", ".." は要素に含まれません。

@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。

@raise Errno::EXXX self が存在しないパスであ...

File::Stat#ftype -> String (13.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 以降では、属性メソッドが...

IO#close_on_exec=(bool) (7.0)

自身に close-on-exec フラグを設定します。

...2)
@param bool 自身の close-on-exec フラグを true か false で指定します。

f = open("/dev/null")
f.close_on_exec = true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
f.closed? #=> false

@see IO#close_on_exec?...

Kernel#file_create(*args) { ... } -> Rake::FileCreationTask (7.0)

ファイルを作成するタスクを定義します。

...ファイルを作成するタスクを定義します。

主に Kernel.#directory を定義するために使用します。...
<< < 1 2 3 > >>