-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Conversation
@@ -49,7 +49,8 @@ define(function (require, exports, module) { | |||
var extensionToExtApplicationMap = {}; | |||
|
|||
function convertUnixPathToWindowsPath(path) { | |||
if (brackets.platform === "win" && path && path[1] === ":" && path[2] === "/") { | |||
if (brackets.platform === "win" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the reason for this change? Windows network paths?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when we open network file with some external application, it does not accept path with forward-slash "/", so need to converted to windows style.
e.g
Illustrator "//<network_path_with_forward_slash>/example.ai this does not work."
so have to give like :
Illustrator "\\<network_path_with_backward_slash>\example.ai"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use the condition brackets.platform === "win" && FileSystem.isAbsolutePath()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also are we planning to remove leading slashes from paths like /C:/notepad/notepad.exe
?
And more than two leading slashes do not work for network path, so we are covered there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we will never have local path with leading slashes so not required.
Windows network path also need to be converted to windows style path
@jha-G @narayani28 please review