get_file_name
A tool to get the filename from a given file path.
Arguments
Name
Type
Description
Required
path_to_file
string
The path to the file.
include_extension
boolean
Whether to include the file extension in the returned filename. Defaults to true.
Returns
Type
Description
string
The filename with or without extension based on the include_extension argument.
Example
Last updated