るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. _builtin notimplementederror
  2. gets notimplementederror
  3. fcntl notimplementederror
  4. print notimplementederror
  5. notimplementederror _builtin

ライブラリ

キーワード

検索結果

File#birthtime -> Time (22.0)

作成された時刻を Time オブジェクトとして返します。

...::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.birthtime(filename) -> Time (22.0)

作成された時刻を返します。

...作成された時刻を返します。

@param filename ファイル名を表す文字列か IO オブジェクトを指定します。

@raise Errno::EXXX ファイルの時刻の取得に失敗した場合に発生します。

@raise NotImplementedError Windows のような birthtime のない...
...環境で発生します。

//emlist[例][ruby]{
File
.birthtime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
//}...

File.lchmod(mode, *filename) -> Integer (22.0)

File.chmod と同様ですが、シンボリックリンクに関してリンクそのものの モードを変更します。

...
File
.chmod と同様ですが、シンボリックリンクに関してリンクそのものの
モードを変更します。

@param filename ファイル名を表す文字列を指定します。

@param mode chmod(2) と同様に整数で指定します。

@raise NotImplementedError lchmod(2)...
...生します。

//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 (22.0)

File#chown と同様ですが、 シンボリックリンクに関してリンクそのもののオーナー、 グループを変更します。

...
File
#chown と同様ですが、
シンボリックリンクに関してリンクそのもののオーナー、
グループを変更します。

@param filename ファイル名を表す文字列を指定します。

@param owner chown(2) と同様に数値で指定します。nil または -1...
...発生します。

//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
//}...