980件ヒット
[1-100件を表示]
(0.042秒)
種類
- インスタンスメソッド (916)
- 特異メソッド (42)
- 定数 (22)
クラス
-
Net
:: FTP (773) -
Net
:: FTP :: MLSxEntry (207)
キーワード
-
DEFAULT
_ BLOCKSIZE (11) -
FTP
_ PORT (11) - abort (11)
- acct (11)
- appendable? (9)
- binary (11)
- charset (9)
- chdir (11)
- close (11)
- closed? (11)
- connect (11)
- creatable? (9)
- create (9)
-
debug
_ mode (11) -
default
_ passive (9) - deletable? (9)
- delete (11)
- dir (22)
- directory? (9)
-
directory
_ makable? (9) - enterable? (9)
- facts (9)
- file? (9)
- get (22)
- getbinaryfile (22)
- getdir (11)
- gettextfile (22)
- help (11)
- lang (9)
-
last
_ response (11) -
last
_ response _ code (11) - lastresp (11)
- list (22)
- listable? (9)
- login (11)
- ls (22)
- mdtm (11)
-
media
_ type (9) - mkdir (11)
- mlsd (18)
- mlst (9)
- modify (9)
- mtime (11)
- new (11)
- nlst (11)
- noop (11)
- open (22)
-
open
_ timeout (11) - passive (11)
- pathname (9)
- perm (9)
- purgeable? (9)
- put (22)
- putbinaryfile (22)
- puttextfile (22)
- pwd (11)
- quit (11)
-
read
_ timeout (11) - readable? (9)
- renamable? (9)
- rename (11)
- resume (11)
- retrbinary (22)
- retrlines (11)
-
return
_ code (11) - rmdir (11)
- sendcmd (11)
-
set
_ socket (11) - site (11)
- size (20)
- status (11)
- storbinary (22)
- storlines (22)
- system (11)
- type (9)
- unique (9)
- voidcmd (11)
- welcome (11)
- writable? (9)
検索結果
先頭5件
-
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (126.0) -
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::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle"......=>493,
# "unix.owner"=>106},
# @pathname => ".",
# #<Net::FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (126.0) -
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::MLSxEntry:0x00558fbfa379c0
# @facts=
# {"modify"=>2014-08-25 16:44:41 UTC,
# "perm"=>"fle"......=>493,
# "unix.owner"=>106},
# @pathname => ".",
# #<Net::FTP::MLSxEntry:0x00558fbfa33e10
# @facts=
# {"modify"=>2004-12-22 08:56:36 UTC,
# "perm"=>"adfr",
# "size"=>1128,
# "type"=>"file",
# "unique"=>"801U1FEF97",
# "unix.group"=>0,... -
Net
:: FTP :: MLSxEntry # facts -> { String => String|Integer|Time } (108.0) -
そのエントリの「facts」を返します。
...)
* "size": ファイルサイズ (Integer, octet単位)
* "unique": ユニークID (String)
* "lang": ファイルの言語 (String)
* "media-type": メディアタイプ (String)
* "charset": 文字エンコーディング (String)
サーバが UNIX 系 OS の場合は以下のよう... -
Net
:: FTP # abort -> String (102.0) -
データの転送を中止します。
データの転送を中止します。
@return サーバからの応答を文字列で返します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。 -
Net
:: FTP # acct(account) -> nil (102.0) -
サーバーに ACCT コマンドでアカウント情報を送ります。
サーバーに ACCT コマンドでアカウント情報を送ります。
@param account 送りたいアカウント情報を文字列で与えます。
@raise Net::FTPReplyError 応答コードが2yzでない場合に発生します。 -
Net
:: FTP # binary -> bool (102.0) -
Net::FTP#put, Net::FTP#get による転送を バイナリモード(IMAGE)で行うかどうかを返します。
Net::FTP#put, Net::FTP#get による転送を
バイナリモード(IMAGE)で行うかどうかを返します。
デフォルトの値は true です。
偽の場合、テキストモード(ASCII)が仮定されます。
EBCDIC や LOCAL など他の表現タイプはサポートされていません。
@see Net::FTP#binary= -
Net
:: FTP # chdir(dirname) -> nil (102.0) -
リモートサーバでのカレントディレクトリを dirname に変更します。
リモートサーバでのカレントディレクトリを dirname に変更します。
@param dirname 変更先のディレクトリを与えます。
@raise Net::FTPReplyError 応答コードがエラーである場合に発生します。カレントディレクトリ変更に失敗した場合に発生します。 -
Net
:: FTP # close -> () (102.0) -
サーバとの接続を切ります。
サーバとの接続を切ります。
再び Net::FTP#connect で接続しない限り
一切の操作が不可能になります。 -
Net
:: FTP # closed? -> bool (102.0) -
接続が切れている時に真を返します。
接続が切れている時に真を返します。 -
Net
:: FTP # connect(host , port = FTP _ PORT) -> () (102.0) -
host で指定されたホストに接続します。
host で指定されたホストに接続します。
環境変数 SOCKS_SERVER が指定されている場合、SOCKS プロクシを
経由して接続します。
これを呼びだす前に通信をしようとすると、
Net::FTPConnectionError 例外が発生します。
@param host 接続するホスト名です。
@param port 接続するポート番号です。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoErr...