dvc/repo/tree.py
def walk(
        self, top, topdown=True, onerror=None, dvcfiles=False, **kwargs
    ):  # pylint: disable=arguments-differ
        """Walk and merge both DVC and repo trees.

        Args:
            top: path to walk from
            topdown: if True, tree will be walked from top down.
            onerror: if set, onerror function will be called if an error
                occurs (by default errors are ignored).
            dvcfiles: if True, dvcfiles will be included in the files list
                for walked directories.

        Any kwargs will be passed into methods used for fetching and/or
        streaming DVC outs from remotes.
        """
        assert topdown

        if not self.exists(top):
            if onerror is not None:
                onerror(FileNotFoundError(top))
            return

        if not self.isdir(top):
            if onerror is not None:
                onerror(NotADirectoryError(top))
            return

        dvc_exists = self.dvctree and self.dvctree.exists(top)
        repo_exists = self.repo.tree.exists(top)
        if dvc_exists and not repo_exists:
            yield from self.dvctree.walk(
                top, topdown=topdown, onerror=onerror, **kwargs
            )
            return
        if repo_exists and not dvc_exists:
            yield from self.repo.tree.walk(
                top, topdown=topdown, onerror=onerror
            )
            return

        dvc_walk = self.dvctree.walk(top, topdown=topdown, **kwargs)
        repo_walk = self.repo.tree.walk(top, topdown=topdown)
        yield from self._walk(dvc_walk, repo_walk, dvcfiles=dvcfiles)
Walk and merge both DVC and repo trees.

        Args:
            top: path to walk from
            topdown: if True, tree will be walked from top down.
            onerror: if set, onerror function will be called if an error
                occurs (by default errors are ignored).
            dvcfiles: if True, dvcfiles will be included in the files list
                for walked directories.

        Any kwargs will be passed into methods used for fetching and/or
        streaming DVC outs from remotes.
        
Walk and merge both DVC and repo trees.
Walk and merge both DVC and repo trees .
def walk(
        self, top, topdown=True, onerror=None, dvcfiles=False, **kwargs
    ):  
        assert topdown
        if not self.exists(top):
            if onerror is not None:
                onerror(FileNotFoundError(top))
            return
        if not self.isdir(top):
            if onerror is not None:
                onerror(NotADirectoryError(top))
            return
        dvc_exists = self.dvctree and self.dvctree.exists(top)
        repo_exists = self.repo.tree.exists(top)
        if dvc_exists and not repo_exists:
            yield from self.dvctree.walk(
                top, topdown=topdown, onerror=onerror, **kwargs
            )
            return
        if repo_exists and not dvc_exists:
            yield from self.repo.tree.walk(
                top, topdown=topdown, onerror=onerror
            )
            return
        dvc_walk = self.dvctree.walk(top, topdown=topdown, **kwargs)
        repo_walk = self.repo.tree.walk(top, topdown=topdown)
        yield from self._walk(dvc_walk, repo_walk, dvcfiles=dvcfiles)
def walk ( self , top , topdown = True , onerror = None , dvcfiles = False , ** kwargs ) : assert topdown if not self . exists ( top ) : if onerror is not None : onerror ( FileNotFoundError ( top ) ) return if not self . isdir ( top ) : if onerror is not None : onerror ( NotADirectoryError ( top ) ) return dvc_exists = self . dvctree and self . dvctree . exists ( top ) repo_exists = self . repo . tree . exists ( top ) if dvc_exists and not repo_exists : yield from self . dvctree . walk ( top , topdown = topdown , onerror = onerror , ** kwargs ) return if repo_exists and not dvc_exists : yield from self . repo . tree . walk ( top , topdown = topdown , onerror = onerror ) return dvc_walk = self . dvctree . walk ( top , topdown = topdown , ** kwargs ) repo_walk = self . repo . tree . walk ( top , topdown = topdown ) yield from self . _walk ( dvc_walk , repo_walk , dvcfiles = dvcfiles )
Walk and merge both DVC and repo trees.
Walk and merge both DVC and repo trees .
# pylint: disable=arguments-differ """Walk and merge both DVC and repo trees.

        Args:
            top: path to walk from
            topdown: if True, tree will be walked from top down.
            onerror: if set, onerror function will be called if an error
                occurs (by default errors are ignored).
            dvcfiles: if True, dvcfiles will be included in the files list
                for walked directories.

        Any kwargs will be passed into methods used for fetching and/or
        streaming DVC outs from remotes.
        """
self
top
path to walk from
path to walk from
topdown
if True, tree will be walked from top down.
if True tree will be walked from top down .
onerror
if set, onerror function will be called if an error
occurs (by default errors are ignored).
if set onerror function will be called if an error occurs ( by default errors are ignored ) .
dvcfiles
if True, dvcfiles will be included in the files list
for walked directories.
if True dvcfiles will be included in the files list for walked directories .