(path, trash=True)
| 475 | |
| 476 | |
| 477 | def remove(path, trash=True): |
| 478 | path = fs_encode(path) |
| 479 | |
| 480 | if not exists(path): |
| 481 | return |
| 482 | |
| 483 | if trash: |
| 484 | send2trash.send2trash(path) |
| 485 | |
| 486 | elif os.path.isdir(path): |
| 487 | shutil.rmtree(path, ignore_errors=True) |
| 488 | |
| 489 | else: |
| 490 | os.remove(path) |
| 491 | |
| 492 | |
| 493 | def fsjoin(*args): |
no test coverage detected