mirror of
https://gitlab.com/dslackw/slpkg.git
synced 2025-01-19 10:27:07 +01:00
Updated for comments
This commit is contained in:
parent
03872cdc91
commit
3217e5fc17
1 changed files with 0 additions and 2 deletions
|
@ -51,7 +51,6 @@ class Downloader(Configs):
|
|||
self.tools(url)
|
||||
|
||||
def tools(self, url: str) -> None:
|
||||
""" Downloader tools wget, wget2, curl and lftp. """
|
||||
path: str = urlparse(url).path
|
||||
self.filename: str = unquote(Path(path).name)
|
||||
|
||||
|
@ -84,7 +83,6 @@ class Downloader(Configs):
|
|||
self.downloader_command: str = f'{self.downloader} {self.lftp_get_options} {url} -o {self.path}'
|
||||
|
||||
def check_if_downloaded(self, url: str) -> None:
|
||||
""" Checks if the file downloaded. """
|
||||
path_file: Path = Path(self.path, self.filename)
|
||||
if not path_file.exists():
|
||||
self.errors.raise_error_message(f"Download the '{url}'", exit_status=20)
|
||||
|
|
Loading…
Reference in a new issue