(self, root: PATH_TYPES, dirs: bool = True)
return "\n".join(str(result.relative_to(root)) for result in results)
A test helper simulating 'find'.

        Iterates over directories and filenames, given as relative paths to the
        root.
A test helper simulating 'find'.
A test helper simulating find .
def find(self, root: PATH_TYPES, dirs: bool = True) -> str:
        """A test helper simulating 'find'.

        Iterates over directories and filenames, given as relative paths to the
        root.

        """
        results = self.walk(root, dirs=dirs)
        results.sort()
        return "\n".join(str(result.relative_to(root)) for result in results)
def find ( self , root : PATH_TYPES , dirs : bool = True ) -> str : results = self . walk ( root , dirs = dirs ) results . sort ( ) return "\n" . join ( str ( result . relative_to ( root ) ) for result in results )