diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:32:31 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-05-07 12:32:31 +0000 |
| commit | 9b91806f65e14365f29aea43a91705eb4c8c1b4c (patch) | |
| tree | 7e937be6b209ef81caa91e4f00a89ec7fbec56af /lib | |
| parent | d7fde61a70664403464e2cc1a924d6abfe907b1b (diff) | |
* lib/fileutils.rb (fu_list): Array() breaks pathes including "\n". [ruby-core:02843]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@6269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -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 8b4ec9d80..99e4feeaa 100644 --- a/lib/fileutils.rb +++ b/lib/fileutils.rb @@ -717,7 +717,7 @@ module FileUtils end def fu_list(arg) - Array(arg).map {|path| path.to_str } + [arg].flatten.map {|path| path.to_str } end def fu_each_src_dest(src, dest) |
