(pathname, dir_fd)
| 190 | |
| 191 | |
| 192 | def _lexists(pathname, dir_fd): |
| 193 | # Same as os.path.lexists(), but with dir_fd |
| 194 | if dir_fd is None: |
| 195 | return os.path.lexists(pathname) |
| 196 | try: |
| 197 | os.lstat(pathname, dir_fd=dir_fd) |
| 198 | except (OSError, ValueError): |
| 199 | return False |
| 200 | else: |
| 201 | return True |
| 202 | |
| 203 | def _isdir(pathname, dir_fd): |
| 204 | # Same as os.path.isdir(), but with dir_fd |