In Windows, when using File.join, one often ends with a path containing
a mixture of / (File::SEPARATOR) and \ (File:ALT_SEPARATOR), which some
libraries do not like (eg. gtk2's FileDialog wrongly guesses the
directory).

I my case, I have to redefine the constant, File::SEPARATOR = '\\',
which raise a warning and may be harmful elsewhere.

It would be useful for such cases to have an optional argument giving
File.join the wanted separator.

_md

-- 
Posted via http://www.ruby-forum.com/.