make sure that for a folder, it has the parents defined.