(
        self,
        conn: Optional[swiftclient.client.Connection] = None,
        recurse: bool = False,
        include_swiftkeep: bool = False,
    )
Iterate over the files in this directory.  Does not yield any
        result for the special paths '.' and '..'.
Iterate over the files in this directory.  Does not yield any
        result for the special paths '.' and '..'.
Iterate over the files in this directory . Does not yield any result for the special paths . and .. .
def iterdir(
        self,
        conn: Optional[swiftclient.client.Connection] = None,
        recurse: bool = False,
        include_swiftkeep: bool = False,
    ) -> Generator["SwiftPath", None, None]:
        """Iterate over the files in this directory.  Does not yield any
        result for the special paths '.' and '..'.
        """
        for name in self._accessor.listdir(str(self)):
            if name in {".", ".."} or name == ".swiftkeep" and not include_swiftkeep:
                # Yielding a path object for these makes little sense
                continue
            path = self._make_child_relpath(name)
            if not recurse or not str(name).endswith("/") or not path.is_dir():
                yield path
            else:
                yield path
                yield from path.iterdir(conn=conn, recurse=recurse)
def iterdir ( self , conn : Optional [ swiftclient . client . Connection ] = None , recurse : bool = False , include_swiftkeep : bool = False , ) -> Generator [ "SwiftPath" , None , None ] : for name in self . _accessor . listdir ( str ( self ) ) : if name in { "." , ".." } or name == ".swiftkeep" and not include_swiftkeep : # Yielding a path object for these makes little sense continue path = self . _make_child_relpath ( name ) if not recurse or not str ( name ) . endswith ( "/" ) or not path . is_dir ( ) : yield path else : yield path yield from path . iterdir ( conn = conn , recurse = recurse )