Retrieves the name of the file or directory represented by the specified path.
the name of the file or directory as a string
the path from which the name should be extracted