るりまサーチ

最速Rubyリファレンスマニュアル検索!
11件ヒット [1-11件を表示] (0.095秒)
トップページ > クエリ:l[x] > クエリ:FALSE[x] > クエリ:sticky?[x]

別のキーワード

  1. object false
  2. _builtin false
  3. rb_false
  4. false
  5. false _builtin

ライブラリ

モジュール

検索結果

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

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

... false を返します。

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

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