Skip to contents

Given a path, extract the file extension

Usage

ext(path, strip = FALSE, new_ext)

Arguments

path

(character) path

strip

(logical) Whether to strip the extension from the path to return the bare file name

new_ext

chr New extension for the filename

Value

(character) with the extensions