33件ヒット
[1-33件を表示]
(0.059秒)
種類
- モジュール関数 (11)
- 特異メソッド (11)
- インスタンスメソッド (11)
ライブラリ
- ビルトイン (33)
クラス
- File (11)
-
File
:: Stat (11)
モジュール
- FileTest (11)
検索結果
-
File
:: Stat # setgid? -> bool (26107.0) -
setgidされている時に真を返します。
...setgidされている時に真を返します。
//emlist[][ruby]{
Dir.glob("/usr/sbin/*") {|bd|
if File::Stat.new(bd).setgid?
puts bd
end
}
#例
#...
#=> /usr/sbin/postqueue
#...
//}... -
File
. setgid?(path) -> bool (26100.0) -
FileTest.#setgid? と同じです。
...FileTest.#setgid? と同じです。
@param path パスを表す文字列か IO オブジェクトを指定します。... -
FileTest
. # setgid?(file) -> bool (26100.0) -
ファイルが setgid(2) されている時に真を返 します。そうでない場合、ファイルが存在しない場合、あるいはシステムコールに失敗した場合などには false を返します。
...名を表す文字列か 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
//}...