joyent/node — pull request #3057 by npcode (2012-04-03 17:03:30+00:00)
Title: Add 'path.sep' to get the path separator.

This patch adds 'sep' property into path module, to get the path separator, like python's os.path.sep.

It will be useful to write a platform-independent code to parse a path.

posix:

'a/b/c'.split(require('path').sep) // => ['a', 'b', 'c']

win32:

'a\\b\\c'.split(require('path').sep) // => ['a', 'b', 'c']