96件ヒット
[1-96件を表示]
(0.037秒)
種類
- インスタンスメソッド (84)
- ライブラリ (12)
ライブラリ
-
net
/ ftp (84)
クラス
-
Net
:: FTP (84)
キーワード
- get (24)
-
net
/ ftp (12) - resume (12)
- retrbinary (24)
検索結果
先頭5件
- Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil - Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) {|data| . . . } -> nil - Net
:: FTP # resume -> bool - Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil - Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil
-
Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (27102.0) -
サーバ上のファイルをバイナリモードで取得します。
...ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答... -
Net
:: FTP # getbinaryfile(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) {|data| . . . } -> nil (27102.0) -
サーバ上のファイルをバイナリモードで取得します。
...ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答... -
Net
:: FTP # resume -> bool (9036.0) -
現在のリジュームモードの状態を返します。
...。
* Net::FTP#get
* Net::FTP#put
* Net::FTP#getbinaryfile
* Net::FTP#putbinaryfile
転送が中断したかどうかは転送先に問題のファイルが存在するか
どうかで判定され、そのファイルサイズで再開する位置を
決めます。
@see Net::FTP#resume=... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (9024.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取......ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (9024.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取......ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答... -
Net
:: FTP # retrbinary(cmd , blocksize , rest _ offset = nil) -> nil (9012.0) -
サーバーに cmd で指定されたコマンドを送り、バイナリデータを 取り寄せます。
...ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答......コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#getbinaryfile... -
Net
:: FTP # retrbinary(cmd , blocksize , rest _ offset = nil) {|data| . . . } -> nil (9012.0) -
サーバーに cmd で指定されたコマンドを送り、バイナリデータを 取り寄せます。
...ます。
@raise Net::FTPTempError 応答コードが 4yz のときに発生します。
@raise Net::FTPPermError 応答コードが 5yz のときに発生します。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答......コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#getbinaryfile... -
net
/ ftp (90.0) -
FTP プロトコルを扱うライブラリです。
...
Net::FTP#get、Net::FTP#put は
Net::FTP#binary の値に従ってテキストモードと
バイナリモードの一方を選びます。また、
Net::FTP#getbinaryfile、Net::FTP#putbinaryfile
は Net::FTP#binary の値によらずバイナリモードで、
Net::FTP#gettextfile、Net::FTP#put......textfile は
Net::FTP#binary の値によらずテキストモードで
データ転送が行われます。
=== パッシブモードとアクティブモード
FTP はファイル転送やディレクトリ情報取得のための
データ転送用の TCP コネクションを、
サーバとの......例1:
require 'net/ftp'
ftp = Net::FTP.new('ftp.example.org')
ftp.login
ftp.passive = true
ftp.chdir('pub/ruby')
files = ftp.list('ruby*')
ftp.getbinaryfile('ruby-1.9.1-p243.tar.bz2', 'ruby.bz2', 1024)
ftp.close
例2:
require 'net/ftp'
Net::FTP.open('ftp.example.org') do |ftp|...... Net::FTP.default_passive= で指定することが
できます。パッシブモードがデフォルトです。
=== 例
例1:
require 'net/ftp'
ftp = Net::FTP.new('ftp.example.org')
ftp.login
ftp.passive = true
ftp.chdir('pub/ruby')
files = ftp.list('ruby*')
ftp.getbinaryfile('ru...