diff --git a/slpkg/downloader.py b/slpkg/downloader.py index 65b233ab..dfa22f31 100644 --- a/slpkg/downloader.py +++ b/slpkg/downloader.py @@ -53,8 +53,8 @@ class Downloader(Configs): filename: str = unquote(Path(path).name) if url.startswith('file'): - shutil.copy2(Path(url[7:]), self.tmp_slpkg) - print(f'{self.byellow}Copying{self.endc}: {Path(url[7:])} -> {self.tmp_slpkg}\n') + shutil.copy2(Path(url.replace('file:', '')), self.tmp_slpkg) + print(f"{self.byellow}Copying{self.endc}: {Path(url.replace('file:', ''))} -> {self.tmp_slpkg}\n") else: if self.downloader in ['wget', 'wget2']: command: str = f'{self.downloader} {self.wget_options} --directory-prefix={self.path} "{url}"'