V
VK
On Windows platforms path separator "\" collides with the script escape
sign "\"
Obvious and old way to prevent it is to double backslashes: "\\"
But I'm curious if there is a reliable way to *restore* the right path
is user occasionally forgets to double some slash? Naturally nothing we
can do in a case like:
getFolder("c:\docs\new\") because it will lead to the syntacs error
long before to arrive to getFolder function.
But in case like getFolder("c:\docs\new")
getFolder will get the path but it will be corrupted.
sign "\"
Obvious and old way to prevent it is to double backslashes: "\\"
But I'm curious if there is a reliable way to *restore* the right path
is user occasionally forgets to double some slash? Naturally nothing we
can do in a case like:
getFolder("c:\docs\new\") because it will lead to the syntacs error
long before to arrive to getFolder function.
But in case like getFolder("c:\docs\new")
getFolder will get the path but it will be corrupted.