clean returned filePath when file created