mirror of
https://github.com/mvt-project/mvt.git
synced 2024-07-01 08:29:03 +00:00
Added some support for patterns in backups' relative paths
This commit is contained in:
parent
8988adcf77
commit
92dfefbdeb
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user