From 92dfefbdebabdf33194d2504b5ed5ce9ce938e97 Mon Sep 17 00:00:00 2001 From: Nex Date: Wed, 31 Aug 2022 19:34:59 +0200 Subject: [PATCH] Added some support for patterns in backups' relative paths --- mvt/ios/modules/base.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mvt/ios/modules/base.py b/mvt/ios/modules/base.py index 5a71810..1d42af3 100644 --- a/mvt/ios/modules/base.py +++ b/mvt/ios/modules/base.py @@ -107,8 +107,12 @@ class IOSExtraction(MVTModule): (relative_path, domain)) else: if relative_path: - cur.execute(f"{base_sql} relativePath = ?;", - (relative_path,)) + if "*" in relative_path: + cur.execute(f"{base_sql} relativePath LIKE ?;", + (relative_path.replace("*", "%"),)) + else: + cur.execute(f"{base_sql} relativePath = ?;", + (relative_path,)) elif domain: cur.execute(f"{base_sql} domain = ?;", (domain,)) except Exception as exc: