filepath.ends.with: Check whether filepath ends with extension.

Description Usage Arguments Value

View source: R/helpers.R

Description

Check whether filepath ends with extension.

Usage

1
filepath.ends.with(filepath, extensions)

Arguments

filepath

string. Path to a file, including filename and extension.

extensions

list of strings. A list of suffixes to check. Case does not matter. Example: extensions=c('.gz', '.mgz').

Value

logical, whether the filepath end with one of the extensions.


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