class_docstr: Class for embedding local file links in an IPython session, based on path
  
  e.g. to embed links to files that were generated in the IPython notebook
  under ``my/data``, you would do::
  
      local_files = FileLinks("my/data")
      display(local_files)
  
  or in the HTML notebook, just::
  
      FileLinks("my/data")
docstr: return newline-separated absolute paths
          
docstr_tok: ["return","newline-separated","absolute","paths"]
code: def __repr__(self):
      """return newline-separated absolute paths"""
      result_lines = []
      if self.recursive:
          walked_dir = list(walk(self.path))
      else:
          walked_dir = [next(walk(self.path))]
      walked_dir.sort()
      for dirname, subdirs, fnames in walked_dir:
          result_lines += self.terminal_display_formatter(
              dirname, fnames, self.included_suffixes
          )
      return "\n".join(result_lines)
  
imports: from html import escape
  from os.path import exists, isfile, splitext, abspath, join, isdir
  from os import walk, sep, fsdecode
  from IPython.core.display import DisplayObject, TextDisplayObject
  from typing import Tuple, Iterable, Optional
label_desc: Use image node_id 6 for calling the FileLinks obj's underlying member method code with example usage: obj.__repr__() and returns: str