(path)
| 463 | |
| 464 | |
| 465 | def exists(path): |
| 466 | path = fs_encode(path) |
| 467 | |
| 468 | if os.name == "nt": |
| 469 | if path.startswith("\\\\"): |
| 470 | return os.path.exists('\\\\?\\UNC\\' + path[2:]) |
| 471 | else: |
| 472 | return os.path.exists('\\\\?\\' + os.path.normpath(os.path.join(os.getcwd(), path))) |
| 473 | else: |
| 474 | return os.path.exists(path) |
| 475 | |
| 476 | |
| 477 | def remove(path, trash=True): |
no test coverage detected