remove_file_extension_from_path: remove a single file extension from a path or filename

View source: R/util_files.R

remove_file_extension_from_pathR Documentation

remove a single file extension from a path or filename

Description

purposely naive approach to keep things simple for our internal usecases; strip a . followed by 0-5 characters from end of the string

Usage

remove_file_extension_from_path(f)

Arguments

f

f can either be a filename or a full path, and optionally carry a file extension. eg; remove_file_extension_from_path("file.txt"); remove_file_extension_from_path("C:/temp/file")


ftwkoopmans/msdap documentation built on March 5, 2025, 12:15 a.m.