Files
node/doc/api
Sakthipriyan Vairamani 65963ec26f doc,test: empty strings in path module
The path module's `join, normalize, isAbsolute, relative and resolve`
functions return/use the current directory if they are passed zero
length strings.

    > process.version
    'v2.3.4-pre'
    > path.win32.join('')
    '.'
    > path.posix.join('')
    '.'
    > path.win32.normalize('')
    '.'
    > path.posix.normalize('')
    '.'
    > path.win32.isAbsolute('')
    false
    > path.posix.isAbsolute('')
    false
    > path.win32.relative('', '')
    ''
    > path.posix.relative('', '')
    ''
    > path.win32relative('.', '')
    ''
    > path.posix.relative('.', '')
    ''
    > path.posix.resolve('')
    '/home/thefourtheye/Desktop'
    > path.win32.resolve('')
    '\\home\\thefourtheye\\Desktop'

Since empty paths are not valid in any of the operating systems people
normally use, this behaviour might be a surprise to the users. This
commit introduces "Notes" about this, wherever applicable in `path`'s
documentation.

The tests makes sure that the behaviour is intact between
commits.

PR-URL: https://github.com/nodejs/io.js/pull/2106
Reviewed-By: Rich Trott <rtrott@gmail.com>
2015-07-14 08:56:50 -07:00
..
2015-02-10 17:58:10 -08:00
2015-02-10 17:58:10 -08:00
2015-02-27 14:23:01 -08:00
2015-02-27 14:23:01 -08:00
2015-04-11 06:47:30 +02:00
2015-02-27 14:23:01 -08:00
2015-02-27 14:23:01 -08:00
2015-02-27 14:23:01 -08:00
2015-05-02 14:07:21 +02:00
2010-11-07 17:22:56 -08:00
2015-06-05 22:58:14 -04:00
2015-02-27 14:23:01 -08:00
2015-04-30 19:44:49 +02:00
2015-02-27 14:23:01 -08:00
2015-02-27 14:23:01 -08:00
2015-05-25 13:50:53 +02:00
2015-04-28 10:12:13 -04:00
2015-03-13 23:14:20 +01:00
2015-02-27 14:23:01 -08:00