diff --git a/qgpg/__init__.py b/qgpg/__init__.py index 8e0d085..bd69cf1 100644 --- a/qgpg/__init__.py +++ b/qgpg/__init__.py @@ -408,8 +408,7 @@ KeyLength: {key.get('length')}""" if self.opts.command == "decrypt": auto_path = in_file[: -len(self.suffix)] if self.opts.recursive and self.opts.out_path: - out_file = os.path.join(self.opts.out_path, strip_prefix(auto_path, self.opts.path)) - print(out_file) + out_file = os.path.join(self.opts.out_path, strip_prefix(auto_path, self.opts.path).lstrip("/")) os.makedirs(os.path.dirname(out_file), exist_ok=True) else: out_file = self.opts.out_path if self.opts.out_path else auto_path