クラス
-
Net
:: FTP (938) -
Net
:: FTP :: MLSxEntry (230)
モジュール
- Kernel (16)
- OpenURI (24)
-
OpenURI
:: OpenRead (24) - URI (16)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) -
DEFAULT
_ BLOCKSIZE (12) - FTP (12)
- FTPConnectionError (12)
- FTPError (12)
- FTPPermError (12)
- FTPProtoError (12)
- FTPReplyError (12)
- FTPTempError (12)
-
FTP
_ PORT (12) - MLSxEntry (10)
-
NEWS for Ruby 2
. 4 . 0 (9) - abort (12)
- acct (12)
- appendable? (10)
- binary (12)
- binary= (12)
- charset (10)
- chdir (12)
- close (12)
- closed? (12)
- connect (12)
- creatable? (10)
- create (10)
-
debug
_ mode (12) -
debug
_ mode= (12) -
default
_ passive (10) -
default
_ passive= (10) - deletable? (10)
- delete (12)
- dir (24)
- directory? (10)
-
directory
_ makable? (10) - enterable? (10)
- facts (10)
- file? (10)
- get (24)
- getbinaryfile (24)
- getdir (12)
- gettextfile (24)
- help (12)
- lang (10)
-
last
_ response (12) -
last
_ response _ code (12) - lastresp (12)
- list (24)
- listable? (10)
- login (12)
- ls (24)
- mdtm (12)
-
media
_ type (10) - mkdir (12)
- mlsd (20)
- mlst (10)
- modify (10)
- mtime (12)
- new (12)
- nlst (12)
- noop (12)
- open (80)
-
open
_ timeout (12) -
open
_ timeout= (12) -
open
_ uri (24) - passive (12)
- passive= (12)
- pathname (10)
- perm (10)
- purgeable? (10)
- put (24)
- putbinaryfile (24)
- puttextfile (24)
- pwd (12)
- quit (12)
-
read
_ timeout (12) -
read
_ timeout= (12) - readable? (10)
- renamable? (10)
- rename (12)
- resume (12)
- resume= (12)
- retrbinary (24)
- retrlines (12)
-
return
_ code (12) -
return
_ code= (12) - rmdir (12)
- sendcmd (12)
-
set
_ socket (12) - site (12)
- size (22)
- status (12)
- storbinary (24)
- storlines (24)
- system (12)
- type (10)
- unique (10)
- voidcmd (12)
- welcome (12)
- writable? (10)
検索結果
先頭5件
-
net
/ ftp (38012.0) -
FTP プロトコルを扱うライブラリです。
...。
=== 例
例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
:: FTPError (8016.0) -
net/ftp ライブラリ関連のエラー全般を表す例外クラスです。
...net/ftp ライブラリ関連のエラー全般を表す例外クラスです。
サーバの応答コードがエラーを示している場合に発生します。
例外発生の原因となったサーバ応答は Exception#message
から得られます。... -
Net
:: FTP # mlsd(pathname = nil) -> [Net :: FTP :: MLSxEntry] (8006.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... -
Net
:: FTP # mlsd(pathname = nil) {|entry| . . . } -> () (8006.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... -
Net
:: FTP (8000.0) -
FTP を実装したクラスです。
FTP を実装したクラスです。 -
Net
:: FTP # abort -> String (8000.0) -
データの転送を中止します。
データの転送を中止します。
@return サーバからの応答を文字列で返します。
@raise Net::FTPReplyError 応答コードが正しくない場合に発生します。 -
Net
:: FTP # acct(account) -> nil (8000.0) -
サーバーに ACCT コマンドでアカウント情報を送ります。
サーバーに ACCT コマンドでアカウント情報を送ります。
@param account 送りたいアカウント情報を文字列で与えます。
@raise Net::FTPReplyError 応答コードが2yzでない場合に発生します。 -
Net
:: FTP # binary -> bool (8000.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 # binary=(bool) (8000.0) -
Net::FTP#put, Net::FTP#get による転送を バイナリモード(IMAGE)で転送するかどうかを指定します。
Net::FTP#put, Net::FTP#get による転送を
バイナリモード(IMAGE)で転送するかどうかを指定します。
デフォルトの値は true です。
偽の場合、テキストモード(ASCII)が仮定されます。
EBCDIC や LOCAL など他の表現タイプはサポートされていません。
@param bool 真ならばバイナリモードを on にします。
@see Net::FTP#binary