'See :class:`FileLink` for the ``path``, ``url_prefix``,
``result_html_prefix`` and ``result_html_suffix`` parameters.
included_suffixes : list
Filename suffixes to include when formatting output [default: include
all files]
notebook_display_formatter : function
Used to format links for display in the notebook. See discussion of
formatter functions below.
terminal_display_formatter : function
Used to format links for display in the terminal. See discussion of
formatter functions below.
Formatter functions must be of the form::
f(dirname, fnames, included_suffixes)
dirname : str
The name of a directory
fnames : list
The files in that directory
included_suffixes : list
The file suffixes that should be included in the output (passing None
meansto include all suffixes in the output in the built-in formatters)
recursive : boolean
Whether to recurse into subdirectories. Default is True.
The function should return a list of lines that will be printed in the
notebook (if passing notebook_display_formatter) or the terminal (if
passing terminal_display_formatter). This function is iterated over for
each directory in self.path. Default formatters are in place, can be
passed here to support alternative formatting.'

def __init__(self, path, url_prefix='', included_suffixes=None, result_html_prefix='', result_html_suffix='<br>', notebook_display_formatter=None, terminal_display_formatter=None, recursive=True):

    if isfile(path):
        raise ValueError(("Cannot    display    a    file    using    FileLinks.    Use    FileLink    to    display    '%s'." % path))
    self.included_suffixes = included_suffixes
    path = path.rstrip('/')
    self.path = path
    self.url_prefix = url_prefix
    self.result_html_prefix = result_html_prefix
    self.result_html_suffix = result_html_suffix
    self.notebook_display_formatter = (notebook_display_formatter or self._get_notebook_display_formatter())
    self.terminal_display_formatter = (terminal_display_formatter or self._get_terminal_display_formatter())
    self.recursive = recursive
