ExtractFiles: Extract output files

extractFilesR Documentation

Extract output files

Description

extractFiles() reads the directory and extract all files from any .gz.tar files that are present. It also assumes that all the files in a single .gz.tar file were in the same directory. It looks at the first file in the .gz.tar, determines how many subdirectories are present, and then strips all those subdirectories. The extracted files will be placed in a new extracted directory. If you want to put them somewhere else, then change the variable extractDir

Usage

extractFiles(itype, exname, tarnames, extime)

Arguments

itype

double() '1' = extract only the given file(s), 0 = extract all files in the directory

exname

character() The directory that contains the tar file(s) to be extracted

tarnames

character() The single tar file to extract (only used if itype = 1)

extime

double() Extract time? Not working

Value

The routine returns a list of the extracted files.

Examples

extractFiles(itype,exname,tarnames,extime)


aclason/rsortie documentation built on Sept. 14, 2022, 8:06 p.m.