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.


freesurferformats documentation built on May 25, 2021, 5:10 p.m.