A correction: basename would actually not be a good name, at the param refers to the full absolute path of the file.