refactor(Mainsail): refactor methods for removing and checking files

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2023-12-22 22:39:43 +01:00
parent 22e8e314db
commit 8ff0b9d81d
5 changed files with 47 additions and 37 deletions

View File

@@ -19,15 +19,7 @@ import urllib.error
import urllib.request
from pathlib import Path
from typing import List, Literal
from zipfile import ZipFile
from kiauh.utils import (
NGINX_CONFD,
MODULE_PATH,
NGINX_SITES_AVAILABLE,
NGINX_SITES_ENABLED,
)
from kiauh.utils.filesystem_utils import check_file_exist
from kiauh.utils.input_utils import get_confirm
from kiauh.utils.logger import Logger