(fn, mode)
| 1561 | # Additionally check that `file` is not a directory, as on Windows |
| 1562 | # directories pass the os.access check. |
| 1563 | def _access_check(fn, mode): |
| 1564 | return (os.path.exists(fn) and os.access(fn, mode) |
| 1565 | and not os.path.isdir(fn)) |
| 1566 | |
| 1567 | |
| 1568 | def _win_path_needs_curdir(cmd, mode): |