diff options
author | Yi, EungJun <semtlenori@gmail.com> | 2012-04-03 01:31:21 +0900 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-01 15:19:37 +0200 |
commit | 4bd54dad33722e93bae5a16f6b274d08944c24cc (patch) | |
tree | eba5bcacba54cf48cb29f817f393b523e3ff5b8d /doc | |
parent | 6ba3e68bd2f9ad582ca0a20e1f42192ab527258e (diff) | |
download | android-node-v8-4bd54dad33722e93bae5a16f6b274d08944c24cc.tar.gz android-node-v8-4bd54dad33722e93bae5a16f6b274d08944c24cc.tar.bz2 android-node-v8-4bd54dad33722e93bae5a16f6b274d08944c24cc.zip |
path: add path.sep to get the path separator.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/api/path.markdown | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/doc/api/path.markdown b/doc/api/path.markdown index 5e0957d257..d178b53f1f 100644 --- a/doc/api/path.markdown +++ b/doc/api/path.markdown @@ -138,3 +138,19 @@ an empty string. Examples: path.extname('index') // returns '' + +## path.sep + +The platform-specific file separator. `'\\'` or `'/'`. + +An example on linux: + + 'foo/bar/baz'.split(path.sep) + // returns + ['foo', 'bar', 'baz'] + +An example on windows: + + 'foo\\bar\\baz'.split(path.sep) + // returns + ['foo', 'bar', 'baz'] |