22件ヒット
[1-22件を表示]
(0.167秒)
検索結果
-
Pathname
# ftype -> String (18139.0) -
File.ftype(self.to_s) と同じです。
...File.ftype(self.to_s) と同じです。
@see File.ftype... -
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"
//}...