From 15193e110bded2f218c993f60c258fbb9c0233c7 Mon Sep 17 00:00:00 2001 From: aamine Date: Fri, 7 May 2004 12:04:19 +0000 Subject: * 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 --- lib/fileutils.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/fileutils.rb') 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) -- cgit