るりまサーチ

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

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

ライブラリ

キーワード

検索結果

<< < ... 2 3 4 >>

FileTest.#sticky?(file) -> bool (3102.0)

ファイルの sticky ビット(chmod(2) 参照)が 立っている時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...se を返します。

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

//emlist[例][ruby]{
require 'fileutils'
IO.write("testfile", "")
FileUtils.chmod("o+t", "testfile")
FileTest
.sticky?("testfile") # => true
FileUtils.chmod("o-t", "testfile")
File...
...Test.sticky?("testfile") # => false
//}...

FileTest.#symlink?(file) -> bool (3102.0)

ファイルがシンボリックリンクである時に真を返します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...た場合などには false を返します。

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

//emlist[例][ruby]{
IO.write("testfile", "test")
FileTest
.symlink?("testfile") # => false
File.symlink("testfile", "testlink")
FileTest
.symlink?("testlink") # => true
//}...
<< < ... 2 3 4 >>