.filename path:{String} extension:{Boolean = true} -> String
Retrieves the name of a file located in path.
the name of the file located in path
path of the file (with extension)
whether to include the file extension in the name
if the file does not exist