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