Adds support for zip files in check-androidqf command (#372)

This commit is contained in:
Tek
2023-07-26 13:53:54 +02:00
committed by GitHub
parent 57d4aca72e
commit 3ec3b86a45
27 changed files with 225 additions and 114 deletions

View File

@@ -4,6 +4,7 @@
# https://license.mvt.re/1.1/
import os
from pathlib import Path
def get_artifact(fname):
@@ -34,3 +35,15 @@ def get_android_androidqf():
def get_indicator_file():
print("PYTEST env", os.getenv("PYTEST_CURRENT_TEST"))
def list_files(path: str):
files = []
parent_path = Path(path).absolute().parent.as_posix()
target_abs_path = os.path.abspath(path)
for root, subdirs, subfiles in os.walk(target_abs_path):
for fname in subfiles:
file_path = os.path.relpath(os.path.join(root, fname), parent_path)
files.append(file_path)
return files