pathname into tmp