def list(team_id, channel, params): text = "Here are the current examples files:" attachments = [] files = '' web_root = Browser_Lamdba_Helper().web_root() + '/' for file in Files.files(web_root): files += '{0} \n'.format(file.replace(web_root, '')) attachments.append({'text': files}) return text, attachments
def repo_files(self): return Files.files(Files.path_combine(self.path_repo, '**'))