Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why does .Parse trim the 1.0 when there isn't a trailing slash?


Because the term "relative" is relative to the current directory, not the current file. It's subtle, but if a directory is being referenced in a form that looks like a file (without the trailing slash) with no additional context, then the parent directory is considered.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: