hi all,
I am trying to change dirs using shell commands in ruby
this is what i came up with but its not working
Code:
.
print " Please enter the absolute path to store downloaded files :"
dwd_path = gets.chomp
system("cd #{dwd_path}")
what could be the error?
from irb i was able to determine that providing "/" while specifying the path could be causing the problem ,how do i change accordingly?