Postmedia/timbits — Issue #12: Coding for correct slash in linux and windows paths
Author: mehtryx
Created: 2012-01-20 19:39:50+00:00
State: open

As the code stands there are references to paths which use the forward slash '/' as it worked in linux and in some situations the '\' is required or expected if the code is run on windows.

In order to allow this to work on both platforms it is recommended to use the path.join method in the path module of node so that the correct slash is applied based on the target system the code is running on.

Need to review locations where this is used and then update code accordingly.

Original note about issue found here: https://pdtech.basecamphq.com/projects/7506668-timbit/posts/55479976/comments#156449664

examples for detecting platform and describing this as a solution are here: http://www.2ality.com/2011/12/nodejs-shell-scripting.html