るりまサーチ

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

別のキーワード

  1. io popen
  2. io pipe
  3. io each
  4. io readlines
  5. io each_line

ライブラリ

クラス

モジュール

検索結果

File.sticky?(path) -> bool (39106.0)

FileTest.#sticky? と同じです。

...
File
Test.#sticky? と同じです。

@param path パスを表す文字列か IO オブジェクトを指定します。...

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

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

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

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