basename

basename(path)

Return filename component of path. Like R’s basename().