on my win32 machine, File::Separator returns / instead of a .
this confuses the system so that it cant find the files i need.
is there a way round? is this a bug or wanted behaviour?
on my win32 machine, File::Separator returns / instead of a .
this confuses the system so that it cant find the files i need.
is there a way round? is this a bug or wanted behaviour?
It shouldn’t be a problem - Windows uses / and \ pretty much
interchangeably for most things. What’s the code that’s giving you
problems?
md #{File.join("c:","foo")} fails as well. STDERR contains ‘The
syntax of the command is incorrect’.
In other languages, like Java, the path separator constant/method is
used to abstract the knowledge of which operating system is in play.
Can it not be so in Ruby?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.