def find_dir(self, lst):
        """
        search a folder in the filesystem
        create the corresponding mappings source <-> build directories
        """
        if isinstance(lst, str):
            lst = [x for x in split_path(lst) if x and x != '.']

        node = self.find_node(lst)
        try:
            os.path.isdir(node.abspath())
        except __HOLE__:
            return None
        return node
dataset/ETHPy150Open cournape/Bento/bento/core/node.py/Node.find_dir