42件ヒット
[1-42件を表示]
(0.022秒)
クラス
-
Net
:: FTP (32) -
Net
:: FTP :: MLSxEntry (10)
キーワード
- appendable? (10)
- mlsd (20)
- sendcmd (12)
検索結果
先頭4件
-
Net
:: FTP # sendcmd(cmd) -> String (6102.0) -
cmd で指定されたコマンドをサーバーに送り、 サーバーからの応答を返します。
cmd で指定されたコマンドをサーバーに送り、
サーバーからの応答を返します。
@param cmd コマンドを文字列で指定します。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。 -
Net
:: FTP :: MLSxEntry # appendable? -> bool (6102.0) -
エントリが追記可能であれば true を返します。
エントリが追記可能であれば true を返します。
APPE コマンド(Net::FTP#putbinaryfile など)
が適用可能であるかどうかを意味します。 -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (8.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......# @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| . . . } -> () (8.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......# @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...