691件ヒット
[1-100件を表示]
(0.018秒)
モジュール
- FileUtils (643)
キーワード
- DryRun (12)
- FileUtils (12)
- METHODS (12)
- NoWrite (12)
-
OPT
_ TABLE (12) - Verbose (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) -
compare
_ stream (12) - copy (12)
-
copy
_ entry (12) -
copy
_ file (12) -
copy
_ stream (12) - cp (12)
-
cp
_ lr (7) -
cp
_ r (12) - getwd (12)
-
have
_ option? (12) - identical? (12)
- install (12)
- link (12)
- ln (12)
-
ln
_ s (12) -
ln
_ sf (12) - makedirs (12)
- mkdir (12)
-
mkdir
_ p (12) - mkpath (12)
- move (12)
- mv (12)
- pwd (12)
- remove (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - rm (12)
-
rm
_ f (12) -
rm
_ r (12) -
rm
_ rf (12) - rmdir (12)
- rmtree (12)
-
safe
_ unlink (12) - symlink (12)
- touch (12)
- uptodate? (12)
検索結果
先頭5件
-
FileUtils
. # copy _ file(src , dest , preserve = false , dereference _ root = true) -> () (9103.0) -
ファイル src の内容を dest にコピーします。
ファイル src の内容を dest にコピーします。
@param src コピー元。
@param dest コピー先。
@param preserve preserve が真のときは更新時刻と、
可能なら所有ユーザ・所有グループもコピーします。
@param dereference_root dereference_root が真のときは src についてだけシンボリックリンクの指す
内容をコピーします。偽の場合はシンボリックリンク自体をコピーします。 -
FileUtils
. # remove _ file(path , force = false) -> () (9103.0) -
ファイル path を削除します。
ファイル path を削除します。
@param path 削除するファイル。
@param force 真のときは削除中に発生した StandardError を無視します。 -
FileUtils
. # compare _ file(file _ a , file _ b) -> bool (6353.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 (6002.0)
-
基本的なファイル操作を集めたモジュールです。
...真を指定するとコピーを実行する前にコピー先を削除します。
: :secure
真を指定するとファイルの削除に FileUtils.#remove_entry_secure を使用します。
: :mtime
時刻を Time か、起算時からの経過秒数を数値で指定します。
: :paren... -
FileUtils
. # cmp(file _ a , file _ b) -> bool (3253.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
. # identical?(file _ a , file _ b) -> bool (3253.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
. # copy(src , dest , options = {}) -> () (3038.0) -
ファイル src を dest にコピーします。
...書きします。
src にファイルが複数与えられた場合、
file1 を dest/file1 にコピー、file2 を dest/file2 にコピー、
というように、ディレクトリ dest の中にファイル file1、file2、 …を
同じ名前でコピーします。dest がディレクトリ......c:FileUtils#options
@raise Errno::ENOTDIR src が複数のファイルかつ、dest がディレクトリでない場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cp 'eval.c', 'eval.c.org'
FileUtils.cp(['cgi.rb', 'complex.rb', 'date.rb'], '/usr/lib/ruby/1.8')
FileUtils.c... -
FileUtils
. # cp(src , dest , options = {}) -> () (3038.0) -
ファイル src を dest にコピーします。
...書きします。
src にファイルが複数与えられた場合、
file1 を dest/file1 にコピー、file2 を dest/file2 にコピー、
というように、ディレクトリ dest の中にファイル file1、file2、 …を
同じ名前でコピーします。dest がディレクトリ......c:FileUtils#options
@raise Errno::ENOTDIR src が複数のファイルかつ、dest がディレクトリでない場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.cp 'eval.c', 'eval.c.org'
FileUtils.cp(['cgi.rb', 'complex.rb', 'date.rb'], '/usr/lib/ruby/1.8')
FileUtils.c... -
FileUtils
. # cd(dir , options = {}) -> 0 (3002.0) -
プロセスのカレントディレクトリを dir に変更します。
...ック終了後に
元のディレクトリに戻ります。
@param dir ディレクトリを指定します。
@param options :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.cd('/', verbose: true) # chdir and report it
//}...