update the isdir