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

View source: R/read_fs_mgh.R

guess.filename.is.gzippedR Documentation

Guess whether a file is gzipped.

Description

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

Usage

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.


freesurferformats documentation built on May 29, 2024, 5:29 a.m.