Returns the base name of the file, i.e., the file name without the extension.
Returns the base name of the file, i.e., the file name without the extension.
If the file doesn't have an extension, or is a hidden file (".hidden"), the name is returned unchanged.
Returns the extension of the file, i.e., the portion of the file name after the last dot.
Returns the extension of the file, i.e., the portion of the file name after the last dot. If the file is a hidden file (starts with a single dot) without an extension (e.g., ".csv"), or if the file doesn't contain a dot at all, then an empty String ("") is returned.