Did I find the right examples for you? yes no

All Samples(1)  |  Call(1)  |  Derive(0)  |  Import(0)

        def walk_tree(root_dir, include_dirs=False):
    for root, dirs, files in os.walk(root_dir):
        if include_dirs:
            for dir_name in dirs:
                yield os.path.join(root, dir_name)
        for name in files:
            yield os.path.join(root, name)
        


src/d/e/DedupeCopy-0.3.6/dedupe_copy/test/test_copy.py   DedupeCopy(Download)
        self.assertTrue(result, 'Altered original files: {0}'.format(notes))
        # verify we copied only one file:
        files = list(utils.walk_tree(copy_to_path, include_dirs=False))
        self.assertEqual(len(files), 1, 'Did not copy just 1 file: {0}'.format(
            files))