るりまサーチ

最速Rubyリファレンスマニュアル検索!
36件ヒット [1-36件を表示] (0.108秒)

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. file chmod
  4. file path
  5. file atime

ライブラリ

クラス

キーワード

検索結果

Pathname#chmod(mode) -> Integer (21146.0)

File.chmod(mode, self.to_s) と同じです。

...File.chmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.chmod...

Pathname#lchmod(mode) -> Integer (9123.0)

File.lchmod(mode, self.to_s) と同じです。

...File.lchmod(mode, self.to_s) と同じです。

@param mode ファイルのアクセス権限を整数で指定します。


@see File.lchmod...

Pathname#ctime -> Time (3029.0)

File.ctime(self.to_s) を渡したものと同じです。

...File.ctime(self.to_s) を渡したものと同じです。

//emlist[例][ruby]{
require 'pathname'

IO.write("testfile", "test")
path
name = Pathname("testfile")
path
name.ctime # => 2019-01-14 00:39:51 +0900
sleep 1
path
name.chmod(0755)
path
name.ctime # => 2019-01-14 00:39:52 +0900
//}

@see File.ct...