33件ヒット
[1-33件を表示]
(0.290秒)
検索結果
-
Pathname
# chmod(mode) -> Integer (35224.0) -
File.chmod(mode, self.to_s) と同じです。
...File.chmod(mode, self.to_s) と同じです。
@param mode ファイルのアクセス権限を整数で指定します。
@see File.chmod... -
Pathname
# lchmod(mode) -> Integer (23201.0) -
File.lchmod(mode, self.to_s) と同じです。
...File.lchmod(mode, self.to_s) と同じです。
@param mode ファイルのアクセス権限を整数で指定します。
@see File.lchmod... -
Pathname
# ctime -> Time (17167.0) -
File.ctime(self.to_s) を渡したものと同じです。
....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.ctime...