Home
Get Started
Overview
API Docs
GitHub
path_ext
Get file extension
Parameters
path
(
String
): A file path.
Returns
NA The file extension including the leading dot, or null if none.
Examples
path_ext("data.csv") # => ".csv" path_ext("Makefile") # => null