Add 'dir' method