guess.filename.is.gzipped: Guess whether a file is gzipped.

Description Usage Arguments Value

View source: R/read_fs_mgh.R

Description

Guess whether a file is gzipped, based on the file extension.

Usage

1
guess.filename.is.gzipped(filepath, gz_extensions = c(".gz", ".mgz"))

Arguments

filepath

string. Path to a file.

gz_extensions

list of strings. A list of suffixes that is considered indicative for the file being gzipped. Defaults to c(".gz", ".mgz"). Case does not matter.

Value

logical, whether this function thinks the file is gzipped.


neuroconductor/freesurferformats documentation built on May 20, 2021, 3:15 p.m.