Call callback when directory