I want to create a directory string variable which is '.appsrcalgorithms' to use it in exec function in node on Windows Platform.
However, it doesn not work properly even use double backslashes in the string.
Here is my try;
λ node
> directory = '.appsrcalgorithms';
'.appsrcalgorithms'
> directory = '.\app\src\algorithms';
'.\app\src\algorithms'
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…