R/misc.R
removeFileSuffix.Rd
Removes the last suffix (including the last dot) from a filename. If no dot exists, the full string is returned.
removeFileSuffix(filepath)
A filename (with optional path -- which is retained)
The input with removed suffix
removeFileSuffix("test.tar.gz") # --> 'test.tar'
#> [1] "test.tar"
removeFileSuffix("test.mzML") # --> 'test'
#> [1] "test"
removeFileSuffix("/path/to/test.mzML") # --> '/path/to/test'
#> [1] "/path/to/test"
removeFileSuffix("test_no_dot") # --> 'test_no_dot'
#> [1] "test_no_dot"