mirror of
https://github.com/mvt-project/mvt.git
synced 2026-09-30 13:09:42 +02:00
Added some support for patterns in backups' relative paths
This commit is contained in:
1 parent
8988adcf77
commit
92dfefbdeb
1 file changed
+6
-2
@@ -107,8 +107,12 @@ class IOSExtraction(MVTModule):
|
|||||||
(relative_path, domain))
|
(relative_path, domain))
|
||||||
else:
|
else:
|
||||||
if relative_path:
|
if relative_path:
|
||||||
cur.execute(f"{base_sql} relativePath = ?;",
|
if "*" in relative_path:
|
||||||
(relative_path,))
|
cur.execute(f"{base_sql} relativePath LIKE ?;",
|
||||||
|
(relative_path.replace("*", "%"),))
|
||||||
|
else:
|
||||||
|
cur.execute(f"{base_sql} relativePath = ?;",
|
||||||
|
(relative_path,))
|
||||||
elif domain:
|
elif domain:
|
||||||
cur.execute(f"{base_sql} domain = ?;", (domain,))
|
cur.execute(f"{base_sql} domain = ?;", (domain,))
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
|
|||||||
Reference in new issue
Block a user