1082件ヒット
[201-300件を表示]
(0.023秒)
ライブラリ
クラス
- Dir (36)
-
File
:: Stat (12) - Pathname (24)
モジュール
- FileTest (36)
- FileUtils (691)
- Kernel (24)
- RakeFileUtils (84)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - DryRun (12)
- FileOperations (12)
- METHODS (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 3
. 1 . 0 (4) - NoWrite (12)
-
OPT
_ TABLE (12) - RakeFileUtils (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 (24)
-
mkdir
_ p (12) - mkpath (24)
- mktmpdir (24)
- move (12)
- mv (12)
- nowrite (12)
-
nowrite
_ flag (12) -
nowrite
_ flag= (12) - pwd (12)
- remove (12)
-
remove
_ dir (12) -
remove
_ entry (12) -
remove
_ entry _ secure (12) -
remove
_ file (12) - rm (12)
-
rm
_ f (24) -
rm
_ r (12) -
rm
_ rf (24) - rmdir (12)
- rmtree (24)
- ruby (12)
-
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ ln (12) -
safe
_ unlink (12) - setgid? (12)
- setuid? (12)
- sh (12)
-
split
_ all (12) - sticky? (12)
- symlink (12)
- symlink? (12)
- touch (12)
- uptodate? (12)
- verbose (12)
-
verbose
_ flag (12) -
verbose
_ flag= (12) -
when
_ writing (12)
検索結果
先頭5件
-
FileUtils
. # rm _ rf(list , options = {}) -> () (38060.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.......#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # rmdir(dir , options = {}) -> () (38060.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 = {}) -> () (38060.0) -
ファイルまたはディレクトリ list を再帰的に消去します。
...FileUtils#options
=== 注意
このメソッドにはローカル脆弱性が存在します。
この脆弱性を回避するには :secure オプションを使用してください。
詳しくは FileUtils.#remove_entry_secure の項を参照してください。
@see FileUtils.#rm, FileUtils.......#rm_r, FileUtils.#remove_entry_secure... -
FileUtils
. # symlink(src , dest , options = {}) -> () (38060.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
. # touch(list , options = {}) -> () (38060.0) -
list で指定されたファイルの最終変更時刻 (mtime) と アクセス時刻 (atime) を変更します。
...場合は配列で指定します。
@param options :mtime, :nocreate, :noop, :verbose が指定できます。
c:FileUtils#options
//emlist[][ruby]{
require 'fileutils'
FileUtils.touch('timestamp')
FileUtils.touch('timestamp', mtime: Time.now)
FileUtils.touch(Dir.glob('*.c'))
//}... -
FileUtils
. # rm _ f(list , options = {}) -> () (38056.0) -
FileUtils.rm(list, force: true) と同じです。
...
FileUtils.rm(list, force: true) と同じです。
c:FileUtils#options
@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。
@param options :noop, :verbose が指定できます。......:force がセットされた場合は作業中すべての StandardError を無視します。
@see FileUtils.#rm... -
FileUtils
. # safe _ unlink(list , options = {}) -> () (38056.0) -
FileUtils.rm(list, force: true) と同じです。
...
FileUtils.rm(list, force: true) と同じです。
c:FileUtils#options
@param list 削除する対象。一つの場合は文字列も指定可能です。
二つ以上指定する場合は配列で指定します。
@param options :noop, :verbose が指定できます。......:force がセットされた場合は作業中すべての StandardError を無視します。
@see FileUtils.#rm... -
FileUtils
. # chmod _ R(mode , list , options = {}) -> Array (38048.0) -
ファイル list のパーミッションを再帰的に mode へ変更します。
...mode へ変更します。
@param mode パーミッションを8進数(absolute mode)か文字列(symbolic
mode)で指定します(FileUtils.#chmod 参照)。
@param list ファイルのリストを指定します。対象のファイルが一つの場合は文字列でも指定可能......二つ以上指定する場合は配列で指定します。
@param options :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chmod_R(0700, '/tmp/removing')
//}... -
FileUtils
. # chown(user , group , list , options = {}) -> Array (38048.0) -
ファイル list の所有ユーザと所有グループを user と group に変更します。
...ptions :noop と :verbose が指定可能です。
c:FileUtils#options
@return list を配列として返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.chown 'root', 'staff', '/usr/local/bin/ruby'
FileUtils.chown nil, 'bin', Dir.glob('/usr/bin/*'), verbose: true
//}...