Directory monitoring wrapper.