(self, root, folders_template)
Recursively build folder structure based on template
        :param root: Root directory to create folder structure
        :param folders_template: List of lists, folder structure template
        :return:
Recursively build folder structure based on template
        :param root: Root directory to create folder structure
        :param folders_template: List of lists, folder structure template
        :return:
Recursively build folder structure based on template : param root : Root directory to create folder structure : param folders_template : List of lists folder structure template : return :
def create_folders(self, root, folders_template):
        """
        Recursively build folder structure based on template
        :param root: Root directory to create folder structure
        :param folders_template: List of lists, folder structure template
        :return:
        """

        if folders_template:
            for folder in folders_template:
                folder_name = folder[0]
                path = '{}/{}'.format(root, folder_name)
                self.create_folder(path)
                self.create_folders(path, folder[1])
def create_folders ( self , root , folders_template ) : if folders_template : for folder in folders_template : folder_name = folder [ 0 ] path = '{}/{}' . format ( root , folder_name ) self . create_folder ( path ) self . create_folders ( path , folder [ 1 ] )