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