ext: Extract the file extensions from a filepath

View source: R/utils_file_io.R

extR Documentation

Extract the file extensions from a filepath

Description

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

See Also

Other file IO: col_types(), dep_read(), dep_write(), dir_fn(), dirs, file_fn(), is_filepath(), last_updated(), list.files2(), load_obj(), make_names(), mkpath(), move_files_to_folder(), needs_update(), object_fn(), object_write(), package_size(), write_dir_fn(), write_lines()


yogat3ch/UU documentation built on May 31, 2024, 10:14 p.m.