fix bug with left strip
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user