mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-11 04:07:39 +02:00
Revert "Store the real/final output filename so that we can notify it correctly to the user"
This reverts commit d7aae3a982.
This commit is contained in:
@@ -790,8 +790,8 @@ class CommandLine:
|
||||
return None
|
||||
|
||||
self._file.close()
|
||||
self._output_filename = self._get_final_filename()
|
||||
os.rename(self._name, self._output_filename)
|
||||
output_filename = self._get_final_filename()
|
||||
os.rename(self._name, output_filename)
|
||||
|
||||
if direct:
|
||||
return CLIDirectFileHandler
|
||||
|
||||
@@ -115,7 +115,6 @@ class LayerWriter(plugins.PluginInterface):
|
||||
progress_callback=self._progress_callback,
|
||||
)
|
||||
file_handle.close()
|
||||
output_name = file_handle._output_filename
|
||||
except IOError as excp:
|
||||
yield 0, (f"Layer cannot be written to {output_name}: {excp}",)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user