るりまサーチ

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

別のキーワード

  1. net/imap content_id
  2. openssl id
  3. json create_id=
  4. json create_id
  5. drb install_id_conv

ライブラリ

クラス

モジュール

検索結果

FileTest.#setgid?(file) -> bool (24212.0)

ファイルが setgid(2) されている時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

...ファイルが setgid(2) されている時に真を返
します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。

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

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

File.setgid?(path) -> bool (24206.0)

FileTest.#setgid? と同じです。

...FileTest.#setgid? と同じです。

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