559件ヒット
[101-200件を表示]
(0.010秒)
キーワード
- cd (24)
- chdir (24)
- chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) - cmp (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)
- 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
. # mv(src , dest , options = {}) -> () (17040.0) -
ファイル src を dest に移動します。
...指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.mv('badname.rb', 'goodname.rb')
FileUtils.mv('stuff.rb', 'lib/ruby', force: true)
FileUtils.mv(['junk.txt', 'dust.txt'], "#{ENV['HOME']}/.trash")
FileUtils.mv(Dir.glob('test*.rb'), 'test', noop:... -
FileUtils
. # copy(src , dest , options = {}) -> () (17034.0) -
ファイル src を 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 = {}) -> () (17034.0) -
ファイル src を 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
. # ln _ s(src , dest , options = {}) -> () (17034.0) -
src へのシンボリックリンク dest を作成します。
...c:FileUtils#options
@raise Errno::EEXIST src が一つで dest がすでに存在しディレクトリでない場合に発生します。
@raise Errno::ENOTDIR src が複数で dest がディレクトリでない場合に発生します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.ln_s......('/usr/bin/ruby', '/usr/local/bin/ruby')
FileUtils.ln_s('verylongsourcefilename.c', 'c', force: true)
FileUtils.ln_s(Dir.glob('bin/*.rb'), '/home/aamine/bin')
//}... -
FileUtils
. # mkdir(dir , options = {}) -> () (17034.0) -
ディレクトリ dir を作成します。
...作成するディレクトリ。
@param options :mode, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.mkdir('test')
FileUtils.mkdir(%w( tmp data ))
FileUtils.mkdir('notexist', noop: true) # does not create really
//}... -
FileUtils
. # remove(list , options = {}) -> () (17034.0) -
list で指定された対象を消去します。
...は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
FileUtils
. # rm(list , options = {}) -> () (17034.0) -
list で指定された対象を消去します。
...は配列で指定します。
@param options :force, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rm('junk.txt')
FileUtils.rm(Dir.glob('*~'))
FileUtils.rm('NotExistFile', force: true) # never raises exception
//}... -
FileUtils
. # rm _ rf(list , options = {}) -> () (17034.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.......#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # rmdir(dir , options = {}) -> () (17034.0) -
ディレクトリ dir を削除します。
...指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.rmdir('somedir')
FileUtils.rmdir(%w(somedir anydir otherdir))
# 実際にはディレクトリの削除は行わずにメッセージ出力のみ
FileUtils.rmdir('somedir', verbose: true, noop:... -
FileUtils
. # rmtree(list , options = {}) -> () (17034.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.......#rm_r, FileUtils.#remove_entry_secure...