follow symlinks to directories if flat is not -1