72件ヒット
[1-72件を表示]
(0.030秒)
検索結果
先頭5件
- net
/ ftp - Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) -> nil - Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) {|line| . . . } -> nil - 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 (38018.0) -
FTP プロトコルを扱うライブラリです。
...びます。また、
Net::FTP#getbinaryfile、Net::FTP#putbinaryfile
は Net::FTP#binary の値によらずバイナリモードで、
Net::FTP#gettextfile、Net::FTP#puttextfile は
Net::FTP#binary の値によらずテキストモードで
データ転送が行われます。
=== パッシブモ......。
=== 例
例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.or... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) -> nil (26102.0) -
サーバ上のファイルをテキストモードで取得します。
サーバ上のファイルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定された場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz の... -
Net
:: FTP # gettextfile(remotefile , localfile = File . basename(remotefile)) {|line| . . . } -> nil (26102.0) -
サーバ上のファイルをテキストモードで取得します。
サーバ上のファイルをテキストモードで取得します。
サーバー上にある remotefile という名前のファイルを取得し、
ローカルの localfile という名前のファイルに保存します。
localfile が nil である場合には保存はしません。
ブロックが指定された場合は
データを1行受信するごとに、その行をブロックに渡します。
@param remotefile 取得対象のリモートのファイル名を与えます。
@param localfile 取得したデータを格納するローカルのファイル名を与えます。
@raise Net::FTPTempError 応答コードが 4yz の... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) -> nil (8006.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取... -
Net
:: FTP # get(remotefile , localfile = File . basename(remotefile) , blocksize = DEFAULT _ BLOCKSIZE) { |data| . . . . } -> nil (8006.0) -
サーバ上のファイルを取得します。
...サーバ上のファイルを取得します。
Net::FTP#binary の値に従って
Net::FTP#getbinaryfile もしくは
Net::FTP#gettextfile を呼びだします。
binary が偽のとき、つまりテキストモードの
ときには blocksize は無視されます。
@param remotefile 取... -
Net
:: FTP # retrlines(cmd) {|line| . . . } -> nil (8006.0) -
サーバーに cmd で指定されたコマンドを送り、テキストデータを 取り寄せます。
...。
@raise Net::FTPProtoError 応答コードが RFC 的に正しくない場合に発生します。
@raise Net::FTPReplyError 応答コードが上の場合以外で正しくない場合(1xy, 3xyが来るべきでないときに来た場合など)に発生します。
@see Net::FTP#gettextfile...