enforce_file_extension: Enforce a file extension on a given path
Description
Ensures that the provided file path ends with the desired file extension.
Usage
enforce_file_extension(path, file_extension)
Value
Character. The path with the expected file extension.
Arguments
- path
Character. A file path.
- file_extension
Character. The file extension to enforce on 'path'.