451件ヒット
[401-451件を表示]
(0.155秒)
種類
- モジュール関数 (391)
- 特異メソッド (48)
- インスタンスメソッド (12)
キーワード
- cd (24)
- chdir (24)
- chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) - cmp (12)
-
collect
_ method (12) - commands (12)
-
compare
_ file (12) - copy (12)
- cp (12)
-
cp
_ lr (7) -
cp
_ r (12) - identical? (12)
- install (12)
- link (12)
- ln (12)
-
ln
_ s (12) - makedirs (12)
- mkdir (12)
-
mkdir
_ p (12) - mkpath (12)
- move (12)
- mv (12)
- remove (12)
-
remove
_ entry (12) - rm (12)
-
rm
_ r (12) - rmdir (12)
- ruby (12)
- symlink (12)
- touch (12)
- uptodate? (12)
検索結果
先頭5件
-
FileUtils
. # rm _ r(list , options = {}) -> () (3107.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...st を再帰的に消去します。
@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。
@param options :force, :noop, :verbose, :secure が指定できます。
c:FileUtils#opt......ョンを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm_r(Dir.glob('/tmp/*'))
FileUtils.rm_r(Dir.glob('/tmp/*'), secure: true)
//}
@see FileUtils.#rm, FileUtils.#remove_entry_secure... -
FileUtils
. # rmdir(dir , options = {}) -> () (3107.0) -
ディレクトリ dir を削除します。
...options :parents, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rmdir('somedir')
FileUtils.rmdir(%w(somedir anydir otherdir))
# 実際にはディレクトリの削除は行わずにメッセージ出力のみ
FileUtils.r......mdir('somedir', verbose: true, noop: true)
//}... -
FileUtils
. # cmp(file _ a , file _ b) -> bool (3007.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
FileUtils
. # compare _ file(file _ a , file _ b) -> bool (3007.0) -
ファイル file_a と file_b の内容が同じなら真を返します。
...ファイル file_a と file_b の内容が同じなら真を返します。
@param file_a ファイル名。
@param file_b ファイル名。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cmp('somefile', 'somefile') #=> true
FileUtils.cmp('/dev/null', '/dev/urandom') #=> false
//}... -
FileUtils
. commands -> Array (3007.0) -
何らかのオプションを持つメソッド名の配列を返します。
...何らかのオプションを持つメソッド名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.commands # => ["chmod", "cp", "cp_r", "install", ...]
//}...