How to change working directory in julia with atom


#1

The command to change working directory is cd(dir::AbstractString=homedir()). Can anyone give an example as how to use it?


#2

cd("../mydir/someotherdir/")


#3

Thank you. Worked fine. I was trying cd(“D:\study\juliaprog”)
which was giving me error.


#4

Backslashes on Windows: you have to double them.
cd(“D:\\study\\juliaprog”)
(“Escape” the backslash.)


#5

cd(“D:\study\juliaprog”) was also not working. Showing error.


#6

or use a Raw String Literal

cd(raw“D:\study\juliaprog”)

#7

Worked fine