Home
last modified time | relevance | path

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

12345678910>>...24

/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/cpython3/Lib/unittest/test/
Dtest_discovery.py46 original_listdir = os.listdir
48 os.listdir = original_listdir
59 os.listdir = lambda path: path_lists.pop(0)
99 original_listdir = os.listdir
101 os.listdir = original_listdir
110 os.listdir = lambda path: path_lists.pop(0)
137 original_listdir = os.listdir
139 os.listdir = original_listdir
149 os.listdir = lambda path: path_lists.pop(0)
211 original_listdir = os.listdir
[all …]
/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/llvm-project/lldb/third_party/Python/module/unittest2/unittest2/test/
Dtest_discovery.py29 original_listdir = os.listdir
32 os.listdir = original_listdir
45 os.listdir = lambda path: path_lists.pop(0)
75 original_listdir = os.listdir
78 os.listdir = original_listdir
90 os.listdir = lambda path: path_lists.pop(0)
197 listdir = os.listdir
198 os.listdir = lambda _: ['test_this_does_not_exist.py']
205 os.listdir = listdir
333 original_listdir = os.listdir
[all …]
/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.py80 self.assertIn('out.txt', os.listdir('.'))
96 self.assertIn('out.txt', os.listdir('.'))
115 self.assertIn('out.txt', os.listdir('.'))
134 self.assertIn('out.txt', os.listdir('.'))
191 self.assertIn('inst-histo.txt', os.listdir('.'))
212 self.assertIn('inst-histo.txt', os.listdir('.'))
231 file_list = os.listdir('.')
273 file_list = os.listdir('.')
288 file_list = os.listdir('.')
305 file_list = os.listdir('.')
/external/python/setuptools/setuptools/
Dbuild_meta.py97 return [name for name in os.listdir(a_dir)
117 dist_infos = [f for f in os.listdir(dist_info_directory)
123 dist_info_directory, os.listdir(dist_info_directory)[0])
151 wheels = [f for f in os.listdir(wheel_directory)
168 sdists = [f for f in os.listdir(sdist_directory)
/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/cpython2/Lib/
Ddircache.py21 def listdir(path): function
30 list = os.listdir(path)
35 opendir = listdir # XXX backward compatibility
/external/autotest/server/site_tests/servo_LogGrab/
Dservo_LogGrab.py48 dirs_created = len(os.listdir(self.logtestdir))
54 return os.path.join(self.logtestdir, os.listdir(self.logtestdir)[0])
67 for logf in os.listdir(outdir):
147 logs = os.listdir(outdir)
255 dirs_created = len(os.listdir(self.logtestdir))
267 final_instance_dir = [d for d in os.listdir(self.logtestdir) if
/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/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/python/cpython3/Lib/test/
Dtest_unicode_file_functions.py104 self._apply_failure(os.listdir, name)
118 self._apply_failure(os.listdir, name, self._listdir_failure)
137 self._apply_failure(os.listdir, name)
147 f1 = os.listdir(support.TESTFN.encode(sys.getfilesystemencoding()))
148 f2 = os.listdir(support.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/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/skqp/infra/bots/assets/opencl_ocl_icd_linux/
Dcreate.py31 for f in os.listdir('.'):
35 for f in os.listdir(lib_dir):
/external/skia/infra/bots/assets/opencl_ocl_icd_linux/
Dcreate.py31 for f in os.listdir('.'):
35 for f in os.listdir(lib_dir):
/external/autotest/client/site_tests/logging_UserCrash/
Dlogging_UserCrash.py108 crash_dir_size = len(os.listdir(crash_dir))
127 if crash_dir_size != len(os.listdir(crash_dir)):
130 len(os.listdir(crash_dir)),
/external/toolchain-utils/
Dauto_delete_nightly_test_data.py36 for x in os.listdir(s)
78 for x in os.listdir(dated_dir)
145 for tmp_dir in os.listdir(chroot_tmp):
150 for subdir in os.listdir(tmp_dir):
/external/autotest/frontend/tko/
Dpreconfigs.py28 os.listdir(self._get_preconfig_path(['metrics'])))
30 os.listdir(self._get_preconfig_path(['qual'])))
/external/python/setuptools/setuptools/tests/
Dtest_bdist_egg.py44 [content] = os.listdir('dist')
61 [dist_name] = os.listdir('dist')
/external/skqp/infra/bots/assets/mips64el_toolchain_linux/
Dcreate.py55 for f in os.listdir('.'):
64 for d in os.listdir(parent_dir):
/external/llvm-project/lldb/test/API/arm/emulation/
DTestEmulations.py22 files = os.listdir(test_dir)
35 files = os.listdir(test_dir)

12345678910>>...24