zip_folder: Compress a folder into zip

View source: R/0_files.R

zip_folderR Documentation

Compress a folder into zip

Description

zip::zip() is used so this is platform independent. It will keep the relative path structure in zip, include folder_path itself so the zip can be extracted directly without need of creating a folder to hold contents. The zip file will be saved to the parent folder of folder_path.

Usage

zip_folder(folder_path, zip_name)

Arguments

folder_path

The folder to be compressed

zip_name

The name of zip

Value

The absolute path of result zip file


ctmm-initiative/ctmm-webapp documentation built on Aug. 21, 2023, 4:39 a.m.