- OnDirectory implementation.