opal.file_unzip: Unzip a zip archive file

View source: R/opal.file.R

opal.file_unzipR Documentation

Unzip a zip archive file

Description

Unzip a zip archive file from the Opal file system.

Usage

opal.file_unzip(opal, source, destination, key = NULL)

Arguments

opal

Opal object.

source

Path to the file in the Opal file system (must exist and have the ".zip" file extension).

destination

Path to the destination file or folder in the Opal file system.

key

Key to decrypt archive.

Value

The path of the extracted archive folder in the Opal file system.

See Also

Other file functions: opal.file_cp(), opal.file_download(), opal.file_ls(), opal.file_mkdir_tmp(), opal.file_mkdir(), opal.file_mv(), opal.file_read(), opal.file_rm(), opal.file_upload(), opal.file_write(), opal.file()

Examples

## Not run: 
o <- opal.login('administrator','password', url='https://opal-demo.obiba.org')
# unzip
path <- opal.file_unzip(o, "/tmp/TESTING.zip", "/home/administrator")
opal.logout(o)

## End(Not run)

opalr documentation built on Oct. 6, 2023, 5:08 p.m.