From 2864cfc3e4c0f799a5589a770043f487bdee7569 Mon Sep 17 00:00:00 2001 From: faroukbmiled Date: Tue, 1 Aug 2023 14:36:07 +0100 Subject: [PATCH] add --- boiiiwd.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/boiiiwd.py b/boiiiwd.py index 0423394..06ccea7 100644 --- a/boiiiwd.py +++ b/boiiiwd.py @@ -104,25 +104,11 @@ def get_steamcmd_path(): config.read(CONFIG_FILE_PATH) return config.get("Settings", "SteamCMDPath", fallback=cwd()) -def set_steamcmd_path(steamcmd_path): - config = configparser.ConfigParser() - config.read(CONFIG_FILE_PATH) - config.set("Settings", "SteamCMDPath", steamcmd_path) - with open(CONFIG_FILE_PATH, "w") as config_file: - config.write(config_file) - def extract_json_data(json_path): with open(json_path, "r") as json_file: data = json.load(json_file) return data["Type"], data["FolderName"] -def get_file_size(url): - response = requests.head(url) - if "Content-Length" in response.headers: - file_size = int(response.headers["Content-Length"]) - return file_size - return None - def convert_bytes_to_readable(size_in_bytes): for unit in ['B', 'KB', 'MB', 'GB', 'TB']: if size_in_bytes < 1024.0: