282件ヒット
[101-200件を表示]
(0.121秒)
ライブラリ
- ビルトイン (84)
-
net
/ ftp (30) - openssl (12)
- pathname (48)
-
rubygems
/ package / tar _ writer (48) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (12)
- un (12)
クラス
-
ARGF
. class (12) - File (12)
-
File
:: Stat (12) -
Gem
:: Package :: TarWriter (48) - IO (48)
-
Net
:: FTP (20) -
Net
:: FTP :: MLSxEntry (10) -
OpenSSL
:: SSL :: SSLContext (12) - Pathname (48)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - UNIXSocket (12)
モジュール
- Kernel (12)
キーワード
-
add
_ file (24) -
add
_ file _ simple (24) - chmod (54)
- facts (10)
-
inplace
_ mode= (12) - lchmod (12)
- mlsd (20)
- open (42)
-
recv
_ io (12) - reopen (36)
-
set
_ params (12) - stat (12)
検索結果
先頭5件
-
Shell
:: Filter # open(path , mode) -> File | Dir (231.0) -
path がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
...がファイルなら、 File.open path がディレクトリなら、 Dir.open の動作をします。
@param path 開きたいパスを指定します。
@param mode アクセスモードを指定します。path がディレクトリの場合は無視されます。
@see File.open, Dir.open... -
Shell
# chmod(mode , *filename) -> Integer (230.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod... -
Shell
:: CommandProcessor # chmod(mode , *filename) -> Integer (230.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod... -
Shell
:: Filter # chmod(mode , *filename) -> Integer (230.0) -
File クラスにある同名のクラスメソッドと同じです.
...
File クラスにある同名のクラスメソッドと同じです.
@param filename ファイル名を表す文字列を指定します。
@param mode chmod(2) と同様に整数で指定します。
@see File.chmod... -
Pathname
# open(mode = & # 39;r& # 39; , perm = 0666) -> File (227.0) -
File.open(self.to_s, *args, &block) と同じです。
...File.open(self.to_s, *args, &block) と同じです。
@see File.open... -
Pathname
# open(mode = & # 39;r& # 39; , perm = 0666) {|file| . . . } -> object (227.0) -
File.open(self.to_s, *args, &block) と同じです。
...File.open(self.to_s, *args, &block) と同じです。
@see File.open... -
IO
# stat -> File :: Stat (148.0) -
ファイルのステータスを含む File::Stat オブジェクトを生成して 返します。
...タスを含む File::Stat オブジェクトを生成して
返します。
@raise Errno::EXXX ステータスの読み込みに失敗した場合に発生します。
@raise IOError 既に close されていた場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "This is line......one\nThis is line two\n")
File.open("testfile") do |f|
s = f.stat
"%o" % s.mode # => "100644"
s.blksize # => 4096
s.atime # => 2018-03-01 23:19:59 +0900
end
//}
@see File#lstat, File.stat, File.lstat... -
Pathname
# chmod(mode) -> Integer (146.0) -
File.chmod(mode, self.to_s) と同じです。
...File.chmod(mode, self.to_s) と同じです。
@param mode ファイルのアクセス権限を整数で指定します。
@see File.chmod... -
Pathname
# lchmod(mode) -> Integer (146.0) -
File.lchmod(mode, self.to_s) と同じです。
...File.lchmod(mode, self.to_s) と同じです。
@param mode ファイルのアクセス権限を整数で指定します。
@see File.lchmod... -
IO
# reopen(path , mode) -> self (126.0) -
path で指定されたファイルにストリームを繋ぎ換えます。
...す。
@param mode パスを開く際のモードを文字列で指定します。
@raise Errno::EXXX 失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "This is line one\nThis is line two\n")
f1 = File.new("testfile", "a+")
f2 = File.new("testfile")
f1.print("This......is line three\n")
f2.readlines # => ["This is line one\n", "This is line two\n"]
f1.close
f2.reopen("testfile", "r") # => #<File:testfile>
f2.readlines # => ["This is line one\n", "This is line two\n", "This is line three\n"]
f2.close
//}
@see Kernel.#open... -
UNIXSocket
# recv _ io(klass=IO , mode=nil) -> Integer|IO|object (120.0) -
ソケットの接続先からファイルディスクリプタを受け取ります。
..., mode]) が呼ばれ、その値が返されます。
例:
require 'socket'
s1, s2 = UNIXSocket.pair
s1.send_io STDOUT
io = s2.recv_io
p File.identical?(io, STDOUT) #=> true
@param klass 受け取ったファイルディスクリプタを変換するためのクラス
@param mode...