Added function to distinguish the pathname and filename