mirror of
https://github.com/mvt-project/mvt.git
synced 2026-05-16 13:59:22 +02:00
Logging module completed
This commit is contained in:
@@ -21,8 +21,13 @@ class Files(AndroidExtraction):
|
||||
|
||||
def run(self):
|
||||
self._adb_connect()
|
||||
|
||||
output = self._adb_command("find / -type f 2> /dev/null")
|
||||
if output:
|
||||
with open(os.path.join(self.output_folder, "files.txt"), "w") as handle:
|
||||
if output and self.output_folder:
|
||||
files_txt_path = os.path.join(self.output_folder, "files.txt")
|
||||
with open(files_txt_path, "w") as handle:
|
||||
handle.write(output)
|
||||
|
||||
log.info("List of visible files stored at %s", files_txt_path)
|
||||
|
||||
self._adb_disconnect()
|
||||
|
||||
Reference in New Issue
Block a user