Does `.is_dir()` use `stat` or `lstat`? We need to make sure we aren't deleting through a symlink.