Home
last modified time | relevance | path

Searched refs:listdir (Results 1 – 25 of 629) sorted by relevance

12345678910>>...26

/external/python/cpython3/Lib/unittest/test/
Dtest_discovery.py47 original_listdir = os.listdir
49 os.listdir = original_listdir
60 os.listdir = lambda path: path_lists.pop(0)
100 original_listdir = os.listdir
102 os.listdir = original_listdir
111 os.listdir = lambda path: path_lists.pop(0)
138 original_listdir = os.listdir
140 os.listdir = original_listdir
150 os.listdir = lambda path: path_lists.pop(0)
212 original_listdir = os.listdir
[all …]
/external/python/cpython2/Lib/test/
Dtest_dircache.py17 for fname in os.listdir(self.tempdir):
37 entries = dircache.listdir(self.tempdir)
41 self.assertTrue(dircache.listdir(self.tempdir) is entries)
54 entries = dircache.listdir(self.tempdir)
56 self.assertTrue(dircache.listdir(self.tempdir) is entries)
59 self.assertRaises(OSError, dircache.listdir, self.tempdir+"_nonexistent")
Dtest_pep277.py62 for fname in os.listdir(unicode(dirname)):
116 self._apply_failure(os.listdir, name, OSError, False)
143 self._apply_failure(os.listdir, name, OSError, False)
151 f1 = os.listdir(test_support.TESTFN)
152 f2 = os.listdir(unicode(test_support.TESTFN,
/external/python/apitools/apitools/gen/
Dgen_client_test.py57 self.assertEquals(expected_files, set(os.listdir(tmp_dir_path)))
72 self.assertEquals(expected_files, set(os.listdir(tmp_dir_path)))
94 set(os.listdir(tmp_dir_path)))
109 set(os.listdir(tmp_dir_path)))
123 set(os.listdir(tmp_dir_path)))
137 set(os.listdir(tmp_dir_path)))
/external/python/cpython2/Lib/unittest/test/
Dtest_discovery.py29 original_listdir = os.listdir
31 os.listdir = original_listdir
42 os.listdir = lambda path: path_lists.pop(0)
72 original_listdir = os.listdir
74 os.listdir = original_listdir
84 os.listdir = lambda path: path_lists.pop(0)
183 listdir = os.listdir
184 os.listdir = lambda _: ['test_this_does_not_exist.py']
190 os.listdir = listdir
323 original_listdir = os.listdir
[all …]
/external/toolchain-utils/heatmaps/
Dheatmap_generator_test.py88 self.assertIn("out.txt", os.listdir("."))
104 self.assertIn("out.txt", os.listdir("."))
123 self.assertIn("out.txt", os.listdir("."))
142 self.assertIn("out.txt", os.listdir("."))
199 self.assertIn("inst-histo.txt", os.listdir("."))
220 self.assertIn("inst-histo.txt", os.listdir("."))
239 file_list = os.listdir(".")
283 file_list = os.listdir(".")
298 file_list = os.listdir(".")
315 file_list = os.listdir(".")
/external/python/cpython2/Doc/library/
Ddircache.rst29 .. function:: listdir(path)
31 Return a directory listing of *path*, as gotten from :func:`os.listdir`. Note
32 that unless *path* changes, further call to :func:`listdir` will not re-read the
41 Same as :func:`listdir`. Defined for backwards compatibility.
52 >>> a = dircache.listdir('/')
/external/python/cpython3/Lib/distutils/tests/
Dtest_build_py.py57 files = os.listdir(pkgdest)
64 pyc_files = os.listdir(pycache_dir)
102 found = os.listdir(cmd.build_lib)
104 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
120 found = os.listdir(cmd.build_lib)
122 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
/external/python/setuptools/setuptools/_distutils/tests/
Dtest_build_py.py57 files = os.listdir(pkgdest)
64 pyc_files = os.listdir(pycache_dir)
102 found = os.listdir(cmd.build_lib)
104 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
120 found = os.listdir(cmd.build_lib)
122 found = os.listdir(os.path.join(cmd.build_lib, '__pycache__'))
/external/autotest/server/site_tests/servo_LogGrab/
Dservo_LogGrab.py49 dirs_created = len(os.listdir(self.logtestdir))
55 return os.path.join(self.logtestdir, os.listdir(self.logtestdir)[0])
68 for logf in os.listdir(outdir):
148 logs = os.listdir(outdir)
256 dirs_created = len(os.listdir(self.logtestdir))
268 final_instance_dir = [d for d in os.listdir(self.logtestdir) if
/external/python/cpython2/Lib/
Ddircache.py21 def listdir(path): function
30 list = os.listdir(path)
35 opendir = listdir # XXX backward compatibility
/external/python/cpython3/Lib/test/
Dtest_unicode_file_functions.py105 self._apply_failure(os.listdir, name)
119 self._apply_failure(os.listdir, name, self._listdir_failure)
138 self._apply_failure(os.listdir, name)
148 f1 = os.listdir(os_helper.TESTFN.encode(
150 f2 = os.listdir(os_helper.TESTFN)
/external/python/parse_type/tasks/_vendor/
Dpathlib.py361 listdir = _wrap_strfunc(os.listdir) variable in _NormalAccessor
461 listdir = parent_path._accessor.listdir
462 return self._select_from(parent_path, is_dir, exists, listdir)
467 def _select_from(self, parent_path, is_dir, exists, listdir): argument
477 def _select_from(self, parent_path, is_dir, exists, listdir): argument
482 for p in self.successor._select_from(path, is_dir, exists, listdir):
492 def _select_from(self, parent_path, is_dir, exists, listdir): argument
496 for name in listdir(parent_path):
500 for p in self.successor._select_from(path, is_dir, exists, listdir):
509 def _iterate_directories(self, parent_path, is_dir, listdir): argument
[all …]
/external/python/pybind11/tests/extra_setuptools/
Dtest_setuphelper.py81 for item in tmpdir.listdir():
85 len([f for f in tmpdir.listdir() if f.basename.startswith("simple_setup")]) == 1
87 assert len(list(tmpdir.listdir())) == 4 # two files + output + build_dir
/external/vulkan-validation-layers/scripts/
Dgenerate_source.py96 temp_files = set(os.listdir(temp_dir))
97 repo_files = set(os.listdir(repo_dir))
120 for filename in os.listdir(temp_dir):
/external/fonttools/Tests/cu2qu/
Dcli_test.py56 outputs = set(p.basename for p in output_dir.listdir())
72 self.run_main(mode, '-d', output_dir_2, *output_dir.listdir())
74 self.run_main(mode, '-d', output_dir_2, *output_dir.listdir())
/external/python/setuptools/setuptools/
Dbuild_meta.py97 return [name for name in os.listdir(a_dir)
103 f for f in os.listdir(directory)
192 dist_infos = [f for f in os.listdir(dist_info_directory)
201 dist_info_directory, os.listdir(dist_info_directory)[0])
/external/python/cpython3/Tools/scripts/
Dgenerate_stdlib_module_names.py61 for filename in os.listdir(STDLIB_PATH):
70 for name in os.listdir(STDLIB_PATH):
77 for package_file in os.listdir(package_path)):
/external/cronet/testing/unexpected_passes_common/
Dbuilders.py102 for f in os.listdir(TESTING_BUILDBOT_DIR)
107 for f in os.listdir(INTERNAL_TESTING_BUILDBOT_DIR)
146 for f in os.listdir(TESTING_BUILDBOT_DIR)
151 for f in os.listdir(INTERNAL_TESTING_BUILDBOT_DIR)
/external/harfbuzz_ng/src/
Dcheck-c-linkage-decls.py16 [x for x in os.listdir ('.') if x.startswith ('hb') and x.endswith ('.h')]
20 x for x in os.listdir ('.') if x.startswith ('hb') and x.endswith (('.cc', '.hh'))
Dcheck-header-guards.py16 [x for x in os.listdir ('.') if x.startswith ('hb') and x.endswith ('.h')]
20 x for x in os.listdir ('.') if x.startswith ('hb') and x.endswith (('.cc', '.hh'))
/external/toolchain-utils/
Dauto_delete_nightly_test_data.py39 for x in os.listdir(s)
87 for x in os.listdir(dated_dir)
226 for tmp_dir in os.listdir(chroot_tmp):
231 for subdir in os.listdir(tmp_dir):
/external/python/setuptools/setuptools/tests/
Dtest_bdist_egg.py44 [content] = os.listdir('dist')
60 [dist_name] = os.listdir('dist')
/external/autotest/frontend/tko/
Dpreconfigs.py28 os.listdir(self._get_preconfig_path(['metrics'])))
30 os.listdir(self._get_preconfig_path(['qual'])))
/external/grpc-grpc/third_party/nanopb/examples/network_server/
Dclient.c46 bool listdir(int fd, char *path) in listdir() function
135 if (!listdir(sockfd, path)) in main()

12345678910>>...26