path.relative behavior with different cases on case-insensitive file system

19 views
Skip to first unread message

Joran Dirk Greef

unread,
Sep 8, 2014, 4:46:13 AM9/8/14
to nod...@googlegroups.com
I noticed something interesting with path.relative on Mac OS X:

Node.path.relative(Node.process.cwd(), Node.path.resolve('/Users'))

../..

Node.path.relative(Node.process.cwd(), Node.path.resolve('/users'))

../../../users

The relative path from the cwd to '/Users' and from the cwd to '/users' is not normalized in the same way, even though these paths are equivalent on Mac OS X?

Reply all
Reply to author
Forward
0 new messages