るりまサーチ

最速Rubyリファレンスマニュアル検索!
18件ヒット [1-18件を表示] (0.032秒)
トップページ > クエリ:nil[x] > クエリ:end[x] > クエリ:mlsd[x]

別のキーワード

  1. _builtin nil?
  2. nilclass nil?
  3. object nil?
  4. _builtin nil
  5. object nil

ライブラリ

クラス

検索結果

Net::FTP#mlsd(pathname = nil) -> [Net::FTP::MLSxEntry] (18222.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...
...# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README.txt">,
# :
# ]
end
...

Net::FTP#mlsd(pathname = nil) {|entry| ... } -> () (18222.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...
...# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,
# "unix.mode"=>420,
# "unix.owner"=>106},
# @pathname="README.txt">,
# :
# ]
end
...