onlyDir and onlyHide