remove directory information in the list