Home
last modified time | relevance | path

Searched refs:dst_dir (Results 1 – 25 of 29) sorted by relevance

12

/external/python/cpython2/Lib/test/
Dtest_shutil.py157 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/
Dmain.rs13 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/
Ddroid11 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/
Ddroid11 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/
Drundroid.sh15 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/
Dtest_shutil.py443 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/
Dgenerate-darwin-source-and-headers.py98 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/
Dgenerate-darwin-source-and-headers.py100 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/
Dmake_skqp_model.cpp72 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/
Dpatch-android-src33 dst_dir="$(dirname "$dst_file")"
83 mkdir -p "$dst_dir"
89 cd "$dst_dir"
/external/vulkan-validation-layers/build-android/
Dbuild.py28 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__.py20 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__.py19 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/
Dmake_distribution_archives.py135 dst_dir = os.path.dirname(dst)
136 if not os.path.exists(dst_dir):
137 os.makedirs(dst_dir)
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_shutil_test.py433 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/
Dtest_file_util.py78 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/
Dbuild_pip_package.sh46 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/
Ddeps.py305 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/
Dwheel.py31 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/
Dtelemetry_Crosperf.py386 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/
Dfilesystem_test.cc477 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()
Dfilesystem.cc487 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()
Dfilesystem.h90 virtual bool CopyDirectory(const char* src_dir, const char* dst_dir,
/external/pigweed/pw_docgen/py/pw_docgen/
Ddocgen.py69 def build_docs(src_dir: str, dst_dir: str) -> int:
/external/autotest/site_utils/lxc/
Dcontainer.py596 dst_dir = os.path.dirname(dst)
602 (dst_dir, src, dst))

12