220件ヒット
[1-100件を表示]
(0.087秒)
クラス
-
Net
:: FTP (30) -
Net
:: FTP :: MLSxEntry (10) - Pathname (180)
キーワード
- basename (12)
- children (12)
- cleanpath (12)
- directory? (12)
-
each
_ child (24) -
each
_ entry (15) - empty? (9)
- ftype (12)
-
make
_ symlink (12) - mlsd (20)
- mlst (10)
-
relative
_ path _ from (12) - split (12)
- sticky? (12)
- symlink? (12)
- sysopen (12)
検索結果
先頭5件
-
Pathname
# each _ entry {|pathname| . . . } -> nil (23272.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...lf.to_s) {|f| yield Pathname.new(f) } と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@......f| yield Pathname.new(f) } と同じです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:i......nclude>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# each _ entry -> Enumerator (23172.0) -
Dir.foreach(self.to_s) {|f| yield Pathname.new(f) } と同じです。
...f| yield Pathname.new(f) } と同じです。
ブロックを省略した場合は Enumerator を返します。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_entry {|f| p f }
# => #<Pathname:.>
# => #<Pathname:..>
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathname:i......nclude>
# => #<Pathname:lib>
# => #<Pathname:opt>
//}
@see Dir.foreach... -
Pathname
# empty? -> bool (23143.0) -
ディレクトリに対しては Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
...は Dir.empty?(self.to_s) と同じ、他に対しては FileTest.empty?(self.to_s) と同じです。
//emlist[例 ディレクトリの場合][ruby]{
require "pathname"
require 'tmpdir'
Pathname("/usr/local").empty? # => false
Dir.mktmpdir { |dir| Pathname(dir).empty? } # => true
/....../}
//emlist[例 ファイルの場合][ruby]{
require "pathname"
require 'tempfile'
Pathname("testfile").empty? # => false
Tempfile.create("tmp") { |tmp| Pathname(tmp).empty? } # => true
//}
@see Dir.empty?, FileTest.#empty?, Pathname#zero?... -
Pathname
# directory? -> bool (23101.0) -
FileTest.directory?(self.to_s) と同じです。
...FileTest.directory?(self.to_s) と同じです。
@see FileTest.#directory?... -
Pathname
# ftype -> String (23101.0) -
File.ftype(self.to_s) と同じです。
...File.ftype(self.to_s) と同じです。
@see File.ftype... -
Pathname
# make _ symlink(old) -> 0 (23101.0) -
File.symlink(old, self.to_s) と同じです。
...File.symlink(old, self.to_s) と同じです。
@see File.symlink... -
Pathname
# sticky? -> bool (23101.0) -
FileTest.sticky?(self.to_s) と同じです。
...FileTest.sticky?(self.to_s) と同じです。
@see FileTest.#sticky?... -
Pathname
# symlink? -> bool (23101.0) -
FileTest.symlink?(self.to_s) と同じです。
...FileTest.symlink?(self.to_s) と同じです。
@see FileTest.#symlink?... -
Pathname
# sysopen(*args) -> Integer (23101.0) -
IO.sysopen(self.to_s, *args)と同じです。
...IO.sysopen(self.to_s, *args)と同じです。
@see IO.sysopen... -
Net
:: FTP :: MLSxEntry # pathname -> String (21102.0) -
パス名を返します。
パス名を返します。