るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

FileUtils.have_option?(mid, opt) -> bool (6201.0)

mid というメソッドが opt というオプションを持つ場合、真を返します。 そうでない場合は、偽を返します。

...mid というメソッドが opt というオプションを持つ場合、真を返します。
そうでない場合は、偽を返します。

@param mid メソッド名を指定します。

@param opt オプション名を指定します。...

FileUtils.options_of(mid) -> Array (6201.0)

与えられたメソッド名で使用可能なオプション名の配列を返します。

...与えられたメソッド名で使用可能なオプション名の配列を返します。

@param mid メソッド名を指定します。

//emlist[][ruby]{
require 'fileutils'
FileUtils
.options_of(:rm) # => ["noop", "verbose", "force"]
//}...

FileUtils.#chmod(mode, list, options = {}) -> Array (107.0)

ファイル list のパーミッションを mode に変更します。

...am options :noop と :verbose が指定可能です。
c:FileUtils#options

@return list を配列として返します。

//emlist[][ruby]{
# Absolute mode
require 'fileutils'
FileUtils
.chmod(0644, %w(my.rb your.rb his.rb her.rb))
FileUtils
.chmod(0755, 'somecommand')
FileUtils
.chmod...
...(0755, '/usr/bin/ruby', verbose: true)
# Symbolic mode
require 'fileutils'
FileUtils
.chmod("u=wr,go=rr", %w(my.rb your.rb his.rb her.rb))
FileUtils
.chmod("u=wrx,go=rx", 'somecommand')
FileUtils
.chmod("u=wrx,go=rx", '/usr/bin/ruby', verbose: true)
//}

symbolic mode では以下の指定を 操作対...
...追加
* "-" 以降で指定した権限を削除
* "=" 以降で指定した権限を指定

権限(複数指定可)。

* "w": 書き込み権限
* "r": 読み込み権限
* "x": 実行権限
* "s": 実行時にユーザー、あるいはグループ ID を設定
* "t": sticky ビット...