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

View source: R/helpers.R

filepath.ends.withR Documentation

Check whether filepath ends with extension.

Description

Check whether filepath ends with extension.

Usage

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 29, 2024, 5:29 a.m.