2 ms·
On Ruby, '/' and '\' function identically, presumably due to normalization underneath. File.join(too_long_identifier, some_other_long_identifier).gsub('/',
by 1letterunixname 4y ago
On Ruby, '/' and '\' function identically, presumably due to normalization underneath.
File.join(too_long_identifier, some_other_long_identifier).gsub('/', '\\')
is often useless and nauseating to read when
"#{dir}/#{filename}"
is portable enough for most of Ruby's File APIs.