[3.4] Fix usage of file/folder names without suffix in Downloader (#5938) (#6043)

Co-authored-by: Jakub Kuczys <me@jacken.men>
This commit is contained in:
Red-GitHubBot
2023-04-19 23:01:28 +02:00
committed by GitHub
parent c2376e6851
commit 6f75c0f13f
3 changed files with 10 additions and 9 deletions

View File

@@ -84,7 +84,7 @@ class Installable(RepoJSONMixin):
self._location = location
self.repo = repo
self.repo_name = self._location.parent.stem
self.repo_name = self._location.parent.name
self.commit = commit
self.end_user_data_statement: str
@@ -129,7 +129,7 @@ class Installable(RepoJSONMixin):
# noinspection PyBroadException
try:
copy_func(src=str(self._location), dst=str(target_dir / self._location.stem))
copy_func(src=str(self._location), dst=str(target_dir / self._location.name))
except: # noqa: E722
log.exception("Error occurred when copying path: %s", self._location)
return False