From fcbdda546132f651025fd3b2075c575655778adf Mon Sep 17 00:00:00 2001 From: Hritik Vijay Date: Tue, 19 Jun 2018 11:19:34 +0530 Subject: [PATCH 1/2] Added support for ls displaying inodes --- src/Aafm.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Aafm.py b/src/Aafm.py index 2b0412f..18d2af2 100644 --- a/src/Aafm.py +++ b/src/Aafm.py @@ -104,11 +104,12 @@ def device_list_files_parsed(self, device_dir): pattern = re.compile(r"^(?P[dl\-][rwx\-]+)\s+(?P\d+)\s+(?P[\w_]+)\s+(?P[\w_]+)\s+(?P\d+)\s+(?P\w{3} \w{3}\s+\d+\s+\d{2}:\d{2}:\d{2} \d{4}) (?P.+)$") else: command = ['ls', '-l', '-a', device_dir] - pattern = re.compile(r"^(?P[dl\-][rwx\-]+) (?P\w+)\W+(?P[\w_]+)\W*(?P\d+)?\W+(?P\d{4}-\d{2}-\d{2} \d{2}:\d{2}) (?P.+)$") + pattern = re.compile(r"^(?P[dl\-][rwx\-]+)\W+(?P\d*) (?P\w+)\W+(?P[\w_]+)\W*(?P\d+)?\W+(?P\d{4}-\d{2}-\d{2} \d{2}:\d{2}) (?P.+)$") entries = {} for line in self.adb_shell(*command): + print("LINE ==== "+line) line = line.rstrip() match = pattern.match(line) From 88f06a29faf247e5042bdbb54408d9ca589ad6e8 Mon Sep 17 00:00:00 2001 From: Hritik Vijay Date: Tue, 19 Jun 2018 11:22:58 +0530 Subject: [PATCH 2/2] Removed debug prints --- src/Aafm.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Aafm.py b/src/Aafm.py index 18d2af2..677bff6 100644 --- a/src/Aafm.py +++ b/src/Aafm.py @@ -109,7 +109,6 @@ def device_list_files_parsed(self, device_dir): entries = {} for line in self.adb_shell(*command): - print("LINE ==== "+line) line = line.rstrip() match = pattern.match(line)