helpers.remove_uploaded_files()   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 2
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 2
rs 10
c 0
b 0
f 0
cc 1
nop 1
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