We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f5ced37 commit 88759c8Copy full SHA for 88759c8
android_unpinner/__main__.py
@@ -363,6 +363,8 @@ def get_apks(package: str, outdir: Path) -> None:
363
if not package_info.startswith("package:"):
364
raise RuntimeError(f"Unxepected output from pm path: {package_info!r}")
365
apks = [p.removeprefix("package:") for p in package_info.splitlines()]
366
+ if not outdir.exists():
367
+ Path.mkdir(outdir)
368
for apk in apks:
369
logging.info(f"Getting {apk}...")
370
outfile = outdir / Path(apk).name
0 commit comments