MCPcopy Index your code
hub / github.com/ipython/ipython / _format_path

Method _format_path

IPython/lib/display.py:607–616  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

605 fp_format)
606
607 def _format_path(self):
608 result_lines = []
609 if self.recursive:
610 walked_dir = list(walk(self.path))
611 else:
612 walked_dir = [next(walk(self.path))]
613 walked_dir.sort()
614 for dirname, subdirs, fnames in walked_dir:
615 result_lines += self.notebook_display_formatter(dirname, fnames, self.included_suffixes)
616 return '\n'.join(result_lines)
617
618 def __repr__(self):
619 """return newline-separated absolute paths

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected