るりまサーチ (Ruby 2.4.0)

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file path
  4. file size

クラス

検索結果

Net::FTP#mlsd(pathname = nil) -> [Net::FTP::MLSxEntry] (43.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...コマンドとして
MLST/MLSD が定義されました。

@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst

require 'net/ftp'

Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::M...

Net::FTP#mlsd(pathname = nil) {|entry| ... } -> () (43.0)

pathname で指定したディレクトリに含まれているファイルの詳細な情報を得ます。

...コマンドとして
MLST/MLSD が定義されました。

@param pathname 情報を得るディレクトリ名
@see Net::FTP#mlst

require 'net/ftp'

Net::FTP.open("ftp.example.org") do |ftp|
ftp.login("anonymous", "foobar@example.com")
p ftp.mlsd("/")
# =>
# [#<Net::FTP::M...