/external/tensorflow/tensorflow/c/ |
D | env_test.cc | 35 ::tensorflow::string dirpath = in TEST() 37 TF_CreateDir(dirpath.c_str(), s); in TEST() 38 ASSERT_TF_OK(s) << "TF_CreateDir failed for " << dirpath << ": " in TEST() 42 ::tensorflow::io::JoinPath(dirpath, "somefile.txt"); in TEST() 57 TF_StringStream* children = TF_GetChildren(dirpath.c_str(), s); in TEST() 58 ASSERT_TF_OK(s) << "TF_GetChildren failed for " << dirpath; in TEST() 74 TF_DeleteDir(dirpath.c_str(), s); in TEST() 77 << dirpath; in TEST() 84 TF_DeleteDir(dirpath.c_str(), s); in TEST() 85 ASSERT_TF_OK(s) << "TF_DeleteDir failed for " << dirpath << ": " in TEST()
|
/external/autotest/client/common_lib/ |
D | file_utils.py | 66 def ensure_dir_exists(dirpath): argument 75 error_msg = 'Directory %s does not exist.' % dirpath 76 if not os.path.isdir(dirpath): 89 for dirpath in dirpaths: 90 ensure_dir_exists(dirpath) 93 def make_leaf_dir(dirpath): argument 103 os.makedirs(dirpath) 118 for dirpath in dirpaths: 119 make_leaf_dir(dirpath)
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 191 def sanitize_dir(dirpath): argument 198 if not os.path.exists(dirpath): 200 _escape_rename(dirpath) 201 _escape_rename_dir_contents(dirpath) 202 _sanitize_fifos(dirpath) 203 _sanitize_symlinks(dirpath) 206 def _escape_rename_dir_contents(dirpath): argument 211 for filename in os.listdir(dirpath): 212 path = os.path.join(dirpath, filename) 214 for filename in os.listdir(dirpath): [all …]
|
D | job_directories.py | 202 def _remove_log_directory_contents(dirpath): argument 209 shutil.rmtree(dirpath) 210 os.mkdir(dirpath) 211 breadcrumb_name = os.path.join(dirpath, 'logs-removed-readme.txt')
|
/external/ImageMagick/PerlMagick/quantum/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/ImageMagick/PerlMagick/default/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/ImageMagick/PerlMagick/ |
D | Makefile.PL.in | 43 my $dirpath = catpath( $vol, $dir); 47 push @l, catfile($dirpath,'lib'); 48 push @l, catfile($dirpath,'..','lib'); 49 push @l, catfile($dirpath,'..','..','lib'); 50 push @l, catfile($dirpath,'..','..','..','lib'); 54 push @b, catfile($dirpath); 55 push @b, catfile($dirpath,'bin'); 56 push @b, catfile($dirpath,'..'); 57 push @b, catfile($dirpath,'..','bin'); 58 push @b, catfile($dirpath,'..','..'); [all …]
|
/external/tensorflow/tensorflow/tools/test/ |
D | upload_test_benchmarks.py | 94 def is_real_file(dirpath, fname): argument 95 fpath = os.path.join(dirpath, fname) 99 def get_mtime(dirpath, fname): argument 100 fpath = os.path.join(dirpath, fname) 104 def list_files_by_mtime(dirpath): argument 117 files = [f for f in os.listdir(dirpath) if is_real_file(dirpath, f)] 118 return sorted(files, key=lambda f: get_mtime(dirpath, f))
|
/external/python/cpython2/Lib/test/ |
D | test_test_support.py | 66 dirpath = support.TESTFN + 'd' 67 subdirpath = os.path.join(dirpath, 'subdir') 68 os.mkdir(dirpath) 70 support.rmtree(dirpath) 71 self.assertFalse(os.path.exists(dirpath)) 73 support.rmtree(dirpath) 75 os.mkdir(dirpath) 77 os.chmod(dirpath, stat.S_IRUSR|stat.S_IXUSR) 79 support.rmtree(dirpath) 80 self.assertFalse(os.path.exists(dirpath)) [all …]
|
/external/yapf/yapf/yapflib/ |
D | file_resources.py | 128 for dirpath, _, filelist in os.walk(filename): 129 if dirpath != '.' and exclude and IsIgnored(dirpath, exclude): 130 excluded_dirs.append(dirpath) 132 elif any(dirpath.startswith(e) for e in excluded_dirs): 135 filepath = os.path.join(dirpath, f)
|
/external/u-boot/tools/ |
D | genboardscfg.py | 74 for (dirpath, dirnames, filenames) in os.walk(CONFIG_DIR): 78 filepath = os.path.join(dirpath, filename) 82 for (dirpath, dirnames, filenames) in os.walk('.'): 88 filepath = os.path.join(dirpath, filename) 235 for (dirpath, dirnames, filenames) in os.walk(CONFIG_DIR): 239 all_defconfigs.append(os.path.join(dirpath, filename)) 367 for (dirpath, dirnames, filenames) in os.walk('.'): 369 database.parse_file(os.path.join(dirpath, 'MAINTAINERS'))
|
/external/python/cpython3/Lib/test/ |
D | test_support.py | 53 dirpath = support.TESTFN + 'd' 54 subdirpath = os.path.join(dirpath, 'subdir') 55 os.mkdir(dirpath) 57 support.rmtree(dirpath) 58 self.assertFalse(os.path.exists(dirpath)) 60 support.rmtree(dirpath) 62 os.mkdir(dirpath) 64 os.chmod(dirpath, stat.S_IRUSR|stat.S_IXUSR) 66 support.rmtree(dirpath) 67 self.assertFalse(os.path.exists(dirpath)) [all …]
|
/external/autotest/client/site_tests/kernel_CrosECSysfsAccel/ |
D | kernel_CrosECSysfsAccel.py | 56 dirpath = os.path.join(self.sysfs_accel_search_path, d) 57 namepath = os.path.join(dirpath, 'name') 75 locpath = os.path.join(dirpath, 'location') 82 self.sysfs_accel_old_path = dirpath 88 self.sysfs_accel_paths[loc] = dirpath
|
/external/python/setuptools/setuptools/ |
D | wheel.py | 33 for dirpath, dirnames, filenames in os.walk(src_dir): 34 subdir = os.path.relpath(dirpath, src_dir) 36 src = os.path.join(dirpath, f) 40 src = os.path.join(dirpath, d) 48 for dirpath, dirnames, filenames in os.walk(src_dir, topdown=True): 50 os.rmdir(dirpath)
|
/external/python/cpython2/Lib/lib-tk/test/ |
D | runtktests.py | 32 for dirpath, dirnames, filenames in os.walk(basepath): 37 if is_package(dirpath) and filenames: 38 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
|
/external/python/cpython3/Lib/tkinter/test/ |
D | runtktests.py | 30 for dirpath, dirnames, filenames in os.walk(basepath): 35 if is_package(dirpath) and filenames: 36 pkg_name = dirpath[len(basepath) + len(os.sep):].replace('/', '.')
|
/external/tensorflow/tensorflow/tools/docs/ |
D | generate_lib.py | 346 for dirpath, _, filenames in os.walk(src_dir): 347 suffix = os.path.relpath(path=dirpath, start=src_dir) 352 title_parser.process(os.path.join(dirpath, base_name)) 355 os.path.join(dirpath, base_name))) 441 for dirpath, _, filenames in os.walk(src_dir): 445 full_path = os.path.join(src_dir, dirpath, base_name) 483 for dirpath, _, filenames in os.walk(src_dir): 484 depth = os.path.relpath(src_dir, start=dirpath) 490 os.path.relpath(path=dirpath, start=src_dir)) 497 full_in_path = os.path.join(dirpath, base_name)
|
/external/skqp/gn/ |
D | checkdir.py | 11 dirpath, = sys.argv[1:] variable 13 print os.path.isdir(dirpath)
|
D | highest_version_dir.py | 12 dirpath = sys.argv[1] variable 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
|
/external/skia/gn/ |
D | checkdir.py | 11 dirpath, = sys.argv[1:] variable 13 print os.path.isdir(dirpath)
|
D | highest_version_dir.py | 12 dirpath = sys.argv[1] variable 15 print sorted(filter(regex.match, os.listdir(dirpath)))[-1]
|
/external/skqp/infra/bots/ |
D | zip_utils.py | 56 dirpath = os.path.join(r, dirname) 57 z.write(dirpath, os.path.relpath(dirpath, target_dir))
|
/external/skia/infra/bots/ |
D | zip_utils.py | 56 dirpath = os.path.join(r, dirname) 57 z.write(dirpath, os.path.relpath(dirpath, target_dir))
|
/external/toolchain-utils/ |
D | verify_compiler.py | 42 os.path.join(dirpath, f) 43 for dirpath, _, files in os.walk(root_dir) 50 os.path.join(dirpath, f) 51 for dirpath, _, files in os.walk(root_dir)
|
/external/webrtc/talk/build/ |
D | merge_ios_libs | 55 for dirpath, _, filenames in os.walk(lib_base_dir): 56 if dirpath.endswith(output_dir_name): 62 entry.append(os.path.join(dirpath, filename))
|