mirror of
https://github.com/mvt-project/mvt.git
synced 2026-02-12 16:42:45 +00:00
Adds support for zip files in check-androidqf command (#372)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user