splitPath() behavior synchronized with splitFile() (#12481)

* splitPath() behavior synchronized with splitFile() having the expected behavior in all languages

splitPath() docstrings update, tests added for both splitPath() and splitFile()

* Path splitting refined and described
This commit is contained in:
Artem V L 2019-10-28 12:58:02 +01:00 • committed by Andreas Rumpf
commit 580462c886
2 changed files with 17 additions and 3 deletions

View file

@ -8,6 +8,7 @@
### Breaking changes in the standard library
- `base64.encode` no longer supports `lineLen` and `newLine` use `base64.encodeMIME` instead.
- `os.splitPath()` behavior synchronized with `os.splitFile()` to return "/" as the dir component of "/root_sub_dir" instead of the empty string.
### Breaking changes in the compiler