675件ヒット
[601-675件を表示]
(0.051秒)
別のキーワード
種類
- インスタンスメソッド (249)
- 特異メソッド (198)
- モジュール関数 (173)
- 文書 (55)
クラス
- CSV (110)
- File (121)
- IO (62)
- Pathname (11)
-
Rake
:: Application (11) -
Rake
:: FileList (88) -
Rake
:: FileTask (11) -
Rake
:: PackageTask (22)
モジュール
- FileTest (140)
- JSON (11)
- Kernel (22)
-
Rake
:: TaskManager (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) -
add
_ loader (11) - atime (11)
- chown (11)
- clone (11)
- close (11)
- closed? (11)
- ctime (33)
- delete (11)
- dump (11)
- dup (11)
- egrep (11)
- empty? (8)
-
excluded
_ from _ list? (11) -
executable
_ real? (11) - existing (11)
- existing! (11)
- ext (11)
- filter (33)
- getc (11)
- grpowned? (11)
- gsub! (11)
- import (11)
- lchmod (11)
- lchown (11)
- link (11)
- mtime (11)
- needed? (11)
- new (11)
- open (44)
- owned? (11)
-
package
_ files (11) -
package
_ files= (11) - read (11)
- readable? (11)
- readlines (11)
- readlink (11)
- resolve (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 3 feature (11) - setgid? (11)
- setuid? (11)
- size? (11)
- socket? (11)
- sticky? (11)
- symlink? (11)
-
synthesize
_ file _ task (11) - unlink (11)
- writable? (11)
- zero? (11)
検索結果
先頭5件
-
File
# atime -> Time (18.0) -
最終アクセス時刻を Time オブジェクトとして返します。
...トとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.atime } # => 2017-12-2... -
File
# ctime -> Time (18.0) -
状態が最後に変更された時刻を Time オブジェクトとして返します。状態の変更とは chmod などによるものです。
...どによるものです。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.ctime } # => 2017-12-2... -
File
# mtime -> Time (18.0) -
最終更新時刻を Time オブジェクトとして返します。
...トとして返します。
@raise IOError 自身が close されている場合に発生します。
@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.open("testfile") { |f| f.mtime } # => 2017-12-2... -
File
. lchmod(mode , *filename) -> Integer (18.0) -
File.chmod と同様ですが、シンボリックリンクに関してリンクそのものの モードを変更します。
...発生します。
//emlist[例][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink")
File.lstat("testlink").ftype # => "link"
File.lchmod(0744, "testlink")
File.stat("testlink").mode.to_s(8) # => "100644"
File.lstat("testlink").mode.to_s(8) # => "120744"
//}... -
File
. lchown(owner , group , *filename) -> Integer (18.0) -
File#chown と同様ですが、 シンボリックリンクに関してリンクそのもののオーナー、 グループを変更します。
...発生します。
//emlist[例][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink")
File.chown(501, -1, "testfile")
File.lstat("testlink").ftype # => "link"
File.lchown(0, -1, "testlink")
File.stat("testlink").uid # => 501
File.lstat("testlink").uid # => 0
//}... -
File
. readlink(path) -> String (18.0) -
シンボリックリンクのリンク先のパスを文字列で返します。
...XX 指定された path がシンボリックリンクでない場合や、リンクの読み取りに失敗した場合に発生します。
//emlist[例:][ruby]{
IO.write("testfile", "test")
File.symlink("testfile", "testlink") # => 0
File.readlink("testlink") # => "testfile"
//}... -
Pathname
# ctime -> Time (18.0) -
File.ctime(self.to_s) を渡したものと同じです。
...File.ctime(self.to_s) を渡したものと同じです。
//emlist[例][ruby]{
require 'pathname'
IO.write("testfile", "test")
pathname = Pathname("testfile")
pathname.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
pathname.chmod(0755)
pathname.ctime # => 2019-01-14 00:39:52 +0900
//}
@see File.ct...