diff options
author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:04:19 +0000 |
---|---|---|
committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:04:19 +0000 |
commit | 15193e110bded2f218c993f60c258fbb9c0233c7 (patch) | |
tree | 01079890f150f479d0b22d4ff9441afc234ae361 /lib/fileutils.rb | |
parent | 9a06a65fc857a78ac6d9df722e1e5af955bd2d3a (diff) | |
download | ruby-15193e110bded2f218c993f60c258fbb9c0233c7.tar.gz ruby-15193e110bded2f218c993f60c258fbb9c0233c7.tar.xz ruby-15193e110bded2f218c993f60c258fbb9c0233c7.zip |
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
* test/fileutils/test_fileutils.rb (mkdir): test "\n" in path.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/fileutils.rb')
-rw-r--r-- | lib/fileutils.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fileutils.rb b/lib/fileutils.rb index c15478ca1..58513b2f8 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -717,7 +717,7 @@ module FileUtils end def fu_list(arg) - Array(arg).map {|path| File.path(path) } + [arg].flatten.map {|path| File.path(path) } end def fu_each_src_dest(src, dest) |