| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | from os import system |
||
| 2 | from pathlib import Path |
||
| 3 | from time import sleep |
||
| 4 | |||
| 5 | from send2trash import send2trash # type: ignore |
||
| 6 | |||
| 7 | |||
| 8 | def clear_terminal() -> None: |
||
| 9 | system("clear||cls") |
||
| 10 | |||
| 11 | |||
| 12 | def wait_for_pastebot_to_recognize_copy() -> None: |
||
| 13 | print("Waiting 2 seconds for Pastebot to recognize it...") |
||
| 14 | sleep(2) |
||
| 15 | print("...done!") |
||
| 16 | |||
| 17 | |||
| 18 | def remove_uploaded_files(folder: Path) -> None: |
||
| 19 | send2trash(folder) |
||
| 20 |