summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NEWS6
-rw-r--r--lib/fileutils.rb69
-rw-r--r--test/fileutils/test_fileutils.rb39
3 files changed, 114 insertions, 0 deletions
@@ -102,6 +102,12 @@ with all sufficient information, see the ChangeLog file or Redmine
* erb command's -S option is deprecated, which will be removed in the next version.
* Matrix
* New method:
@@ -297,6 +297,39 @@ module FileUtils
#
# :call-seq:
# FileUtils.ln_s(target, link, force: nil, noop: nil, verbose: nil)
# FileUtils.ln_s(target, dir, force: nil, noop: nil, verbose: nil)
# FileUtils.ln_s(targets, dir, force: nil, noop: nil, verbose: nil)
@@ -342,6 +375,26 @@ module FileUtils
module_function :ln_sf
#
# Copies a file content +src+ to +dest+. If +dest+ is a directory,
# copies +src+ to +dest/src+.
#
@@ -1252,6 +1305,22 @@ module FileUtils
end
end
def copy(dest)
lstat
case
@@ -449,6 +449,45 @@ class TestFileUtils < Test::Unit::TestCase
cp_r 'tmp/src', 'tmp/dest/', remove_destination: true
end if have_symlink?
def test_mv
check_singleton :mv