/external/python/cpython2/Lib/test/ |
D | test_shutil.py | 157 dst_dir = os.path.join(tempfile.mkdtemp(), 'destination') 165 shutil.copytree(src_dir, dst_dir) 166 self.assertTrue(os.path.isfile(os.path.join(dst_dir, 'test.txt'))) 167 self.assertTrue(os.path.isdir(os.path.join(dst_dir, 'test_dir'))) 168 self.assertTrue(os.path.isfile(os.path.join(dst_dir, 'test_dir', 170 actual = read_data(os.path.join(dst_dir, 'test.txt')) 172 actual = read_data(os.path.join(dst_dir, 'test_dir', 'test.txt')) 177 os.path.join(dst_dir, 'test.txt'), 179 os.path.join(dst_dir, 'test_dir', 'test.txt'), 184 os.path.dirname(dst_dir) [all …]
|
/external/adhd/cras/client/cras-sys/generator/src/ |
D | main.rs | 13 fn copy_headers(src_dir: &Path, dst_dir: &Path) -> Result<(), String> { in copy_headers() 14 if dst_dir.is_file() { in copy_headers() 15 fs::remove_file(&dst_dir).or_else(|e| { in copy_headers() 18 dst_dir, e in copy_headers() 23 if !dst_dir.is_dir() { in copy_headers() 24 fs::create_dir(&dst_dir).or_else(|e| { in copy_headers() 27 dst_dir, e in copy_headers() 44 let dst = dst_dir.join(&header); in copy_headers()
|
/external/skqp/bin/ |
D | droid | 11 dst_dir=/data/local/tmp 27 adb shell "cd \"$dst_dir\"; mkdir -p $dirs" 28 adb push --sync resources "${dst_dir}/" 29 adb push --sync "$path" "${dst_dir}/${name}" 30 adb shell "cd \"$dst_dir\"; chmod +x \"$name\"; \"./$name\" $*"
|
/external/skia/bin/ |
D | droid | 11 dst_dir=/data/local/tmp 27 adb shell "cd \"$dst_dir\"; mkdir -p $dirs" 28 adb push --sync resources "${dst_dir}/" 29 adb push --sync "$path" "${dst_dir}/${name}" 30 adb shell "cd \"$dst_dir\"; chmod +x \"$name\"; \"./$name\" $*"
|
/external/swiftshader/tests/ |
D | rundroid.sh | 15 dst_dir=/data/local/tmp 28 adb push --sync "$lib" "${dst_dir}/${lib}" 31 …k-bundle/sources/cxx-stl/llvm-libc++/libs/arm64-v8a/libc++_shared.so" "${dst_dir}/libc++_shared.so" 33 adb push --sync "$path" "${dst_dir}/${name}" 34 adb shell "cd \"$dst_dir\"; chmod +x \"$name\"; LD_LIBRARY_PATH=. ./$name $*"
|
/external/python/cpython3/Lib/test/ |
D | test_shutil.py | 443 dst_dir = os.path.join(self.mkdtemp(), 'destination') 445 self.addCleanup(shutil.rmtree, os.path.dirname(dst_dir)) 450 shutil.copytree(src_dir, dst_dir) 451 self.assertTrue(os.path.isfile(os.path.join(dst_dir, 'test.txt'))) 452 self.assertTrue(os.path.isdir(os.path.join(dst_dir, 'test_dir'))) 453 self.assertTrue(os.path.isfile(os.path.join(dst_dir, 'test_dir', 455 actual = read_file((dst_dir, 'test.txt')) 457 actual = read_file((dst_dir, 'test_dir', 'test.txt')) 462 dst_dir = self.mkdtemp() 464 self.addCleanup(shutil.rmtree, dst_dir) [all …]
|
/external/libffi/ |
D | generate-darwin-source-and-headers.py | 98 def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''): argument 99 mkdir_p(dst_dir) 110 with open(os.path.join(dst_dir, out_filename), 'w') as out_file: 126 def copy_files(src_dir, dst_dir, pattern=None, filelist=None, file_suffix=None, prefix=None, suffix… argument 128 move_file(src_dir, dst_dir, filename, file_suffix=file_suffix, prefix=prefix, suffix=suffix) 133 dst_dir = os.path.join(platform.directory, 'src', platform.src_dir) 134 …copy_files(src_dir, dst_dir, filelist=platform.src_files, file_suffix=platform.arch, prefix=platfo…
|
/external/python/cpython2/Modules/_ctypes/libffi/ |
D | generate-darwin-source-and-headers.py | 100 def move_file(src_dir, dst_dir, filename, file_suffix=None, prefix='', suffix=''): argument 101 mkdir_p(dst_dir) 109 with open(os.path.join(dst_dir, out_filename), 'w') as out_file: 125 def copy_files(src_dir, dst_dir, pattern=None, filelist=None, file_suffix=None, prefix=None, suffix… argument 127 move_file(src_dir, dst_dir, filename, file_suffix=file_suffix, prefix=prefix, suffix=suffix) 132 dst_dir = os.path.join(platform.directory, 'src', platform.src_dir) 133 …copy_files(src_dir, dst_dir, filelist=platform.src_files, file_suffix=platform.arch, prefix=platfo…
|
/external/skia/tools/skqp/ |
D | make_skqp_model.cpp | 72 const char* dst_dir = argv[2]; in main() local 88 SkASSERT_RELEASE(sk_mkdir(dst_dir)); in main() 90 SkDebugf("Failure: '%s' '%s'\n", src_dir, dst_dir); in main() 93 encode_png(SkStringPrintf("%s/min.png", dst_dir).c_str(), minBitmap.pixmap()); in main() 94 encode_png(SkStringPrintf("%s/max.png", dst_dir).c_str(), maxBitmap.pixmap()); in main()
|
/external/snakeyaml/ |
D | patch-android-src | 33 dst_dir="$(dirname "$dst_file")" 83 mkdir -p "$dst_dir" 89 cd "$dst_dir"
|
/external/vulkan-validation-layers/build-android/ |
D | build.py | 28 def install_file(file_name, src_dir, dst_dir): argument 30 dst_file = os.path.join(dst_dir, file_name) 41 def _install_dir(src_dir, dst_dir): argument 42 parent_dir = os.path.normpath(os.path.join(dst_dir, '..')) 45 shutil.copytree(src_dir, dst_dir, symlinks=True)
|
/external/clang/tools/scan-build-py/libear/ |
D | __init__.py | 20 def build_libear(compiler, dst_dir): argument 46 os.path.join(dst_dir, 'config.h')) 49 target.add_include(dst_dir) 53 target.build_release(dst_dir) 55 return os.path.join(dst_dir, target.name)
|
/external/llvm-project/clang/tools/scan-build-py/libear/ |
D | __init__.py | 19 def build_libear(compiler, dst_dir): argument 45 os.path.join(dst_dir, 'config.h')) 48 target.add_include(dst_dir) 52 target.build_release(dst_dir) 54 return os.path.join(dst_dir, target.name)
|
/external/freetype/src/tools/ |
D | make_distribution_archives.py | 135 dst_dir = os.path.dirname(dst) 136 if not os.path.exists(dst_dir): 137 os.makedirs(dst_dir)
|
/external/python/pyfakefs/pyfakefs/tests/ |
D | fake_filesystem_shutil_test.py | 433 dst_dir = self.make_path('tmp', 'foo') 434 dst_file = os.path.join(dst_dir, 'xyzzy') 437 self.create_dir(dst_dir) 438 os.chmod(dst_dir, 0o555) 440 self.assertTrue(os.path.exists(dst_dir)) 482 dst_dir = self.make_path('tmp', 'foo') 485 self.create_dir(dst_dir) 487 self.assertTrue(os.path.exists(dst_dir)) 489 self.assertRaises(OSError, shutil.copyfile, src_file, dst_dir) 491 self.assertRaises(OSError, shutil.copyfile, src_file, dst_dir)
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_file_util.py | 78 dst_dir = self.mkdtemp() 79 copy_file(foo, dst_dir) 80 self.assertTrue(os.path.exists(os.path.join(dst_dir, 'foo')))
|
/external/tensorflow/tensorflow/tools/pip_package/ |
D | build_pip_package.sh | 46 local dst_dir=$2 66 mkdir -p "${dst_dir}/${dn}" 67 cp $file "${dst_dir}/${file}" 72 cp tensorflow/tools/pip_package/xla_build/CMakeLists.txt "${dst_dir}"
|
/external/python/asn1crypto/dev/ |
D | deps.py | 305 dst_dir = os.path.dirname(dst_path) 306 if not os.path.exists(dst_dir): 307 os.makedirs(dst_dir) 351 dst_dir = os.path.dirname(dst_path) 352 if not os.path.exists(dst_dir): 353 os.makedirs(dst_dir)
|
/external/python/setuptools/setuptools/ |
D | wheel.py | 31 def unpack(src_dir, dst_dir): argument 37 dst = os.path.join(dst_dir, subdir, f) 41 dst = os.path.join(dst_dir, subdir, d)
|
/external/autotest/server/site_tests/telemetry_Crosperf/ |
D | telemetry_Crosperf.py | 386 dst_dir = os.path.join(self.profdir, ''.join( 388 os.makedirs(dst_dir) 389 dst_file = os.path.join(dst_dir, 'perf.data')
|
/external/icing/icing/file/ |
D | filesystem_test.cc | 477 const std::string dst_dir = temp_dir_ + "/dst_dir"; in TEST_F() local 478 EXPECT_TRUE(filesystem.CopyDirectory(src_dir.c_str(), dst_dir.c_str(), in TEST_F() 486 EXPECT_TRUE(filesystem.ListDirectory(dst_dir.c_str(), /*exclude=*/{}, in TEST_F() 493 ASSERT_TRUE(filesystem.DeleteDirectoryRecursively(dst_dir.c_str())); in TEST_F()
|
D | filesystem.cc | 487 bool Filesystem::CopyDirectory(const char* src_dir, const char* dst_dir, in CopyDirectory() argument 504 std::string full_dst_path = absl_ports::StrCat(dst_dir, "/", p->d_name); in CopyDirectory() 517 std::string dst_sub_dir = absl_ports::StrCat(dst_dir, "/", p->d_name); in CopyDirectory()
|
D | filesystem.h | 90 virtual bool CopyDirectory(const char* src_dir, const char* dst_dir,
|
/external/pigweed/pw_docgen/py/pw_docgen/ |
D | docgen.py | 69 def build_docs(src_dir: str, dst_dir: str) -> int:
|
/external/autotest/site_utils/lxc/ |
D | container.py | 596 dst_dir = os.path.dirname(dst) 602 (dst_dir, src, dst))
|