Updated for message

This commit is contained in:
Dimitris Zlatanidis 2023-04-30 20:28:23 +03:00
parent 616ae3d973
commit 25470d25c7

View file

@ -53,7 +53,8 @@ class Downloader(Configs):
filename: str = unquote(Path(path).name)
if url.startswith('file'):
shutil.copy2(url[7:], self.tmp_slpkg)
shutil.copy2(Path(url[7:]), self.tmp_slpkg)
print(f'cp {Path(url[7:])} -> {self.tmp_slpkg}')
else:
if self.downloader in ['wget', 'wget2']:
command: str = f'{self.downloader} {self.wget_options} --directory-prefix={self.path} "{url}"'