class_docstr: Class for embedding a local file link in an IPython session, based on path
  
  e.g. to embed a link that was generated in the IPython notebook as my/data.txt
  
  you would do::
  
      local_file = FileLink("my/data.txt")
      display(local_file)
  
  or in the HTML notebook, just::
  
      FileLink("my/data.txt")
docstr: return html link to file
          
docstr_tok: ["return","html","link","to","file"]
code: def _repr_html_(self):
      """return html link to file"""
      if not exists(self.path):
          return (
              "Path (<tt>%s</tt>) doesn't exist. "
              "It may still be in the process of "
              "being generated, or you may have the "
              "incorrect path." % self.path
          )
  
      return self._format_path()
  
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 3 for calling the FileLink obj's underlying member method code with example usage: obj._repr_html_() and returns: self, unknown