MCPcopy Create free account
hub / github.com/ipython/ipython / _format_path

Method _format_path

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

Source from the content-addressed store, hash-verified

581 fp_format)
582
583 def _format_path(self):
584 result_lines = []
585 if self.recursive:
586 walked_dir = list(walk(self.path))
587 else:
588 walked_dir = [next(walk(self.path))]
589 walked_dir.sort()
590 for dirname, subdirs, fnames in walked_dir:
591 result_lines += self.notebook_display_formatter(dirname, fnames, self.included_suffixes)
592 return '\n'.join(result_lines)
593
594 def __repr__(self):
595 """return newline-separated absolute paths

Callers

nothing calls this directly

Calls 1

sortMethod · 0.80

Tested by

no test coverage detected