diff --git a/internetarchive/item.py b/internetarchive/item.py index b64e23b6..076dbb5a 100644 --- a/internetarchive/item.py +++ b/internetarchive/item.py @@ -733,7 +733,10 @@ def download(self, if no_directory: path = f.name else: - path = os.path.join(self.identifier, f.name) + if os.name == 'nt' and self.identifier.endswith('.'): + path = os.path.join(self.identifier.rstrip('.'), f.name) + else: + path = os.path.join(self.identifier, f.name) if dry_run: print(f.url) continue