how do you see if a dir is open or not