implement list_direcotry using snakebite