Get or remove the extension of a file

get_file_extension(path)

remove_extension(path, filename_only = TRUE)

Arguments

path

At least a file name, potentially the full path

filename_only

Remove the leading directories from path?

Functions

  • remove_extension():