src/main/java/org/edgegallery/appstore/infrastructure/util/AppUtil.java
public void organizedFile(String fileParent, String fileNameExtension) {
        String zipFileName = fileParent.concat(fileNameExtension);
        try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName))) {
            createCompressedFile(out, new File(fileParent), "");
        } catch (IOException e) {
            throw new AppException(ZIP_PACKAGE_ERR_MESSAGES, ResponseConst.RET_COMPRESS_FAILED);
        }
        deleteTempFolder(fileParent, fileNameExtension);

    }
/**
     * clean up temp file.
     *
     * @param fileParent fileParent.
     */
clean up temp file.
@param fileParent fileParent.
clean up temp file . @param fileParent fileParent .
public void organizedFile(String fileParent, String fileNameExtension) {
        String zipFileName = fileParent.concat(fileNameExtension);
        try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName))) {
            createCompressedFile(out, new File(fileParent), "");
        } catch (IOException e) {
            throw new AppException(ZIP_PACKAGE_ERR_MESSAGES, ResponseConst.RET_COMPRESS_FAILED);
        }
        deleteTempFolder(fileParent, fileNameExtension);
    }
public void organizedFile ( String fileParent , String fileNameExtension ) { String zipFileName = fileParent . concat ( fileNameExtension ) ; try ( ZipOutputStream out = new ZipOutputStream ( new FileOutputStream ( zipFileName ) ) ) { createCompressedFile ( out , new File ( fileParent ) , "" ) ; } catch ( IOException e ) { throw new AppException ( ZIP_PACKAGE_ERR_MESSAGES , ResponseConst . RET_COMPRESS_FAILED ) ; } deleteTempFolder ( fileParent , fileNameExtension ) ; }
clean up temp file.
clean up temp file .