The old implementation assumed a path is of Windows iff the second character is a colon. However, that is not always true. First, a colon can be included in a non-Windows path. For example, it is totally fine to have a directory named ':' on Linux 5.17.0 tmpfs. Second, a Windows path may start with \\ for UNC or extended length. Use pathlib to handle all of these cases.pull/10535/head
parent
4c706e961b
commit
c2c9359d46
1 changed files with 3 additions and 3 deletions
Loading…
Reference in new issue