Implemented base name parse for files.