[issue39920] os.lstat() does not work with Window Dos devices

2020-03-12 Thread Eryk Sun
Eryk Sun added the comment: > This is an os.lstat() limitation, nothing to do with pathlib. In 3.8+, stat() and lstat() work with a broader rang of device paths, at least for st_mode checks. For example: >>> s = os.stat('//./PhysicalDrive0') >>> stat.S_ISBLK(s.st_mode) True The

[issue39920] os.lstat() does not work with Window Dos devices

2020-03-10 Thread Steve Dower
Change by Steve Dower : -- versions: +Python 3.7, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39920] os.lstat() does not work with Window Dos devices

2020-03-10 Thread Steve Dower
Steve Dower added the comment: This is an os.lstat() limitation, nothing to do with pathlib. I'll defer to Eryk for suggestions here, since he probably knows the right answer already :) (if not, I'll go do the research to figure out what we're currently missing). -- title: Pathlib p