helpers   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 13
dl 0
loc 20
rs 10
c 0
b 0
f 0

3 Functions

Rating   Name   Duplication   Size   Complexity  
A remove_uploaded_files() 0 2 1
A clear_terminal() 0 2 1
A wait_for_pastebot_to_recognize_copy() 0 4 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