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")
class_docstr_tok: ["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: generate function to use for terminal formatting
          
docstr_tok: ["generate","function","to","use","for","terminal","formatting"]
code: def _get_terminal_display_formatter(self, spacer="  "):
      """generate function to use for terminal formatting"""
      dirname_output_format = "%s/"
      fname_output_format = spacer + "%s"
      fp_format = "%s/%s"
  
      return self._get_display_formatter(
          dirname_output_format, fname_output_format, fp_format
      )
  
imports: from os.path import exists, isfile, splitext, abspath, join, isdir
  from os import walk, sep
  from IPython.core.display import DisplayObject
label_desc: Use image node_id 4 for calling the FileLinks obj's underlying member method code with example usage: obj._get_terminal_display_formatter(spacer) and returns: self