{"record":{"id":"45bb5354fc8f8708","repo":"Tencent/matrix","slug":"tag-apk-unzip-path-inputpath-is-no-45bb53","errorCode":null,"errorMessage":"TAG + \"---APK-UNZIP-PATH '\" + inputPath + \"' is not exist!\"","messagePattern":"TAG \\+ \"---APK-UNZIP-PATH '\" \\+ inputPath \\+ \"' is not exist!\"","errorType":"exception","errorClass":"TaskInitException","httpStatus":null,"severity":"error","filePath":"matrix/matrix-android/matrix-apk-canary/src/main/java/com/tencent/matrix/apk/model/task/ShowFileSizeTask.java","lineNumber":75,"sourceCode":"    private List<Pair<String, Long>> entryList;\n\n\n    public ShowFileSizeTask(JobConfig jobConfig, Map<String, String> params) {\n        super(jobConfig, params);\n        type = TASK_TYPE_SHOW_FILE_SIZE;\n    }\n\n    @Override\n    public void init() throws TaskInitException {\n        super.init();\n        String inputPath = config.getUnzipPath();\n        if (Util.isNullOrNil(inputPath)) {\n            throw new TaskInitException(TAG + \"---APK-UNZIP-PATH can not be null!\");\n        }\n        Log.i(TAG, \"inputPath:%s\", inputPath);\n        inputFile = new File(inputPath);\n        if (!inputFile.exists()) {\n            throw new TaskInitException(TAG + \"---APK-UNZIP-PATH '\" + inputPath + \"' is not exist!\");\n        } else if (!inputFile.isDirectory()) {\n            throw new TaskInitException(TAG + \"---APK-UNZIP-PATH '\" + inputPath + \"' is not directory!\");\n        }\n        if (params.containsKey(JobConstants.PARAM_MIN_SIZE_IN_KB)) {\n            try {\n                downLimit = Long.parseLong(params.get(JobConstants.PARAM_MIN_SIZE_IN_KB));\n            } catch (NumberFormatException e) {\n                Log.e(TAG, \"DOWN-LIMIT-SIZE '\" + params.get(JobConstants.PARAM_MIN_SIZE_IN_KB) + \"' is not number format!\");\n            }\n        }\n\n        if (params.containsKey(JobConstants.PARAM_ORDER)) {\n            if (JobConstants.ORDER_ASC.equals(params.get(JobConstants.PARAM_ORDER))) {\n                order = JobConstants.ORDER_ASC;\n            } else if (JobConstants.ORDER_DESC.equals(params.get(JobConstants.PARAM_ORDER))) {\n                order = JobConstants.ORDER_DESC;\n            } else {\n                Log.e(TAG, \"ORDER-BY '\" + params.get(JobConstants.PARAM_ORDER) + \"' is not correct!\");","sourceCodeStart":57,"sourceCodeEnd":93,"githubUrl":"https://github.com/Tencent/matrix/blob/3b8293bd65d47eeea7caf1f32a3a5d4d5eab60e7/matrix/matrix-android/matrix-apk-canary/src/main/java/com/tencent/matrix/apk/model/task/ShowFileSizeTask.java#L57-L93","documentation":"Thrown from ShowFileSizeTask.init() when the configured unzip path is non-empty but the File does not exist on disk. The task cannot list sizes of a missing directory, so init fails with TaskInitException — typically a stale or mistyped path in the job configuration.","triggerScenarios":"Thrown at matrix/matrix-android/matrix-apk-canary/src/main/java/com/tencent/matrix/apk/model/task/ShowFileSizeTask.java:75 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the configured unzip path for typos","Run the unpack step first so the directory exists","Fix permissions if the path exists but is not accessible"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3b8293bd65d47eeea7caf1f32a3a5d4d5eab60e7","analyzedAt":"2026-09-08T08:01:39.722Z","contentChangedAt":"2026-09-08T08:01:39.722Z","schemaVersion":2},"datasetVersion":"2026-09-16T04:17:20.429Z"}