598件ヒット
[101-200件を表示]
(0.085秒)
ライブラリ
- ビルトイン (418)
-
cgi
/ session (12) - tempfile (72)
- zlib (96)
クラス
-
CGI
:: Session :: FileStore (12) - Dir (23)
- File (107)
-
File
:: Stat (12) - IO (276)
- Tempfile (72)
-
Zlib
:: GzipFile (48) -
Zlib
:: GzipReader (24) -
Zlib
:: GzipWriter (24)
キーワード
- atime (12)
- birthtime (11)
- chmod (12)
- chown (12)
- clone (12)
- close! (12)
-
close
_ on _ exec= (12) - closed? (24)
- ctime (12)
- dup (12)
- eof (12)
- eof? (12)
- fcntl (12)
- fileno (23)
- finish (24)
- flock (12)
- isatty (12)
- length (12)
- lstat (12)
- mtime (12)
- open (12)
- path (12)
- pos (12)
- pos= (12)
- read (12)
- readchar (12)
- readline (12)
- reopen (36)
- rewind (12)
- seek (12)
- size (24)
- size? (12)
- stat (12)
- sync (12)
- sysseek (12)
- tell (12)
-
to
_ i (12) -
to
_ io (12) - tty? (12)
検索結果
先頭5件
-
Zlib
:: GzipFile # closed? -> bool (9101.0) -
IO クラスの同名メソッドと同じ。
...IO クラスの同名メソッドと同じ。
@see IO#to_io, IO#closed?... -
File
# atime -> Time (9037.0) -
最終アクセス時刻を Time オブジェクトとして返します。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime,......File#mtime, File#birthtime... -
File
# birthtime -> Time (9037.0) -
作成された時刻を Time オブジェクトとして返します。
...se IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
@raise NotImplementedError Windows のような birthtime のない環境で発生します。
File.new("testfile").birthtime #=>......Wed Apr 09 08:53:14 CDT 2003
@see File#lstat, File#atime, File#ctime, File#mtime... -
File
# ctime -> Time (9037.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime,......File#mtime, File#birthtime... -
File
# mtime -> Time (9037.0) -
最終更新時刻を Time オブジェクトとして返します。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime,......File#ctime, File#birthtime... -
File
# atime -> Time (9031.0) -
最終アクセス時刻を Time オブジェクトとして返します。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#ctime,... -
File
# chown(owner , group) -> 0 (9031.0) -
ファイルのオーナーとグループを変更します。
...or 自身が close されている場合に発生します。
@raise Errno::EXXX 変更に失敗した場合に発生します。
//emlist[例][ruby]{
File.open("testfile") { |f| f.chown(502, 1000) } # => 0
File.stat("testfile").uid # => 502
File.stat("testfile").gid......# => 1000
//}
@see File.chown... -
File
# ctime -> Time (9031.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime,... -
File
# mtime -> Time (9031.0) -
最終更新時刻を Time オブジェクトとして返します。
...が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-21 22:58:17 +0900
//}
@see File#lstat, File#atime,... -
File
# size -> Integer (9019.0) -
ファイルのサイズを返します。
...ファイルのサイズを返します。
//emlist[例][ruby]{
File.open("/dev/null") do |f|
f.size #=> 0
end
//}
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
@see File#lstat... -
File
# chmod(mode) -> 0 (9013.0) -
ファイルのモードを指定された mode に変更します。
...EXXX が発生し
ます。
@param mode chmod(2) と同様に整数で指定します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX 失敗した場合に発生します。
//emlist[例][ruby]{
f = File.new("out", "w");
f.chmod(0644) #=> 0
//}... -
IO
# close _ on _ exec=(bool) (6148.0) -
自身に close-on-exec フラグを設定します。
...に close-on-exec フラグを設定します。
このフラグをセットすると exec(2) 時にそのファイルデスクリプタを
close します。
@see fcntl(2)
@param bool 自身の close-on-exec フラグを true か false で指定します。
f = open("/dev/null")
f.close_on......_exec = true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
f.closed? #=> false
@see IO#close_on_exec?...