chevah / compat

Chevah OS Compatibility Layer
Other
4 stars 1 forks source link

Add api for absolute path. #678

Closed adiroiban closed 2 years ago

adiroiban commented 2 years ago

Windows can have many absolute path formats, and Python stdlib will not recognize all of them.

For example, it can't recongnize Windows Share paths

>>> import ntpath
>>> ntpath.isabs(r'\\bla\tra')
False
>>> ntpath.isabs(r'\not\an\abs')
True

MS docs - https://docs.microsoft.com/en-us/dotnet/standard/io/file-path-formats

image

We need to add a compat API helper.