/external/chromium-trace/catapult/common/py_utils/py_utils/ |
D | file_util_unittest.py | 27 dest_path = os.path.join(self._tempdir, 'dest') 29 self.assertFalse(os.path.exists(dest_path)) 30 file_util.CopyFileWithIntermediateDirectories(source_path, dest_path) 31 self.assertTrue(os.path.exists(dest_path)) 32 self.assertEqual('data', open(dest_path, 'r').read()) 39 dest_path = os.path.join(self._tempdir, 'path', 'to', 'dest') 41 self.assertFalse(os.path.exists(dest_path)) 42 file_util.CopyFileWithIntermediateDirectories(source_path, dest_path) 43 self.assertTrue(os.path.exists(dest_path)) 44 self.assertEqual('data', open(dest_path, 'r').read()) [all …]
|
D | file_util.py | 10 def CopyFileWithIntermediateDirectories(source_path, dest_path): argument 19 os.makedirs(os.path.dirname(dest_path)) 23 shutil.copy(source_path, dest_path)
|
/external/autotest/client/cros/multimedia/ |
D | arc_resource.py | 79 def stop_microphone_app(self, dest_path): argument 100 self._get_file(dest_path) 146 def _get_file(self, dest_path): argument 155 pipes.quote(dest_path))) 190 dest_path = os.path.join(self._PLAYMUSIC_FILE_FOLDER, file_name) 195 pipes.quote(dest_path))) 197 self._files_pushed.append(dest_path) 199 return dest_path 202 def start_playback(self, dest_path): argument 215 if dest_path not in self._files_pushed: [all …]
|
/external/autotest/client/bin/ |
D | harness_autoserv.py | 85 def fetch_package(self, pkg_name, dest_path): argument 92 self._send_and_wait('AUTOTEST_FETCH_PACKAGE', pkg_name, dest_path) 101 def fetch_pkg_file(self, filename, dest_path): argument 102 if os.path.exists(dest_path): 103 os.remove(dest_path) 115 logging.info('Fetching %s from autoserv to %s.', filename, dest_path) 116 self.job_harness.fetch_package(filename, dest_path) 117 if os.path.exists(dest_path):
|
/external/autotest/server/ |
D | crashcollect.py | 50 def _collect_log_file_with_summary(host, source_path, dest_path): argument 62 host.get_file(source_path, dest_path, preserve_perm=False) 68 if os.path.isfile(dest_path): 69 dest_path = os.path.dirname(dest_path) 72 skip_summary_collection |= not os.path.exists(dest_path) 74 host, source_path, dest_path, 78 def collect_log_file(host, log_path, dest_path, use_tmp=False, clean=False, argument 121 _collect_log_file_with_tmpdir(host, log_path, dest_path) 123 _collect_log_file_with_summary(host, log_path, dest_path) 140 def _collect_log_file_with_tmpdir(host, log_path, dest_path): argument [all …]
|
D | site_utils.py | 240 def remote_wget(source_url, dest_path, ssh_cmd): argument 249 (source_url, ssh_cmd, dest_path))
|
D | autotest.py | 1286 pkg_name, dest_path, fifo_path = fetch_package_match.groups() 1294 self.host.send_file(checksum_file, dest_path) 1327 pkg_name, dest_path, fifo_path = fetch_package_match.groups() 1332 self._send_tarball(pkg_name, dest_path)
|
/external/owasp/sanitizer/tools/ |
D | cut_release.py | 101 dest_path = os.path.join( 105 os.mkdir(dest_path) 110 os.path.join(src_path, child), dest_path) 112 shutil.copyfile(src_path, dest_path) 113 mime_type = mime_type_from_path(dest_path) 115 files_to_rewrite.append(dest_path) 116 new_file_paths.append(dest_path) 117 return dest_path
|
/external/autotest/client/bin/result_tools/ |
D | runner.py | 127 def collect_last_summary(host, source_path, dest_path, argument 144 if not os.path.exists(dest_path): 146 'will be collected', dest_path) 162 dest_dir = dest_path if os.path.isdir(dest_path) else dest_path
|
/external/autotest/client/common_lib/ |
D | packages.py | 126 def fetch_pkg_file(self, filename, dest_path): argument 188 def fetch_pkg_file(self, filename, dest_path): argument 190 dest_path) 198 cmd = self.curl_cmd_pattern % (package_url, dest_path) 202 if not self.exists(dest_path): 210 self.run_command('rm -f %s' % dest_path) 223 def fetch_pkg_file(self, filename, dest_path): argument 225 dest_path) 228 self.run_command('cp %s %s' % (local_path, dest_path)) 441 def fetch_pkg(self, pkg_name, dest_path, repo_url=None, use_checksum=False): argument [all …]
|
/external/linux-kselftest/tools/testing/selftests/mount/ |
D | unprivileged-remount-test.c | 262 const char *dest_path = "/tmp"; in test_priv_mount_unpriv_remount() local 297 ret = mount(orig_path, dest_path, "bind", MS_BIND | MS_REC, NULL); in test_priv_mount_unpriv_remount() 300 orig_path, dest_path, strerror(errno)); in test_priv_mount_unpriv_remount() 303 ret = mount(dest_path, dest_path, "none", in test_priv_mount_unpriv_remount() 311 remount_mnt_flags = read_mnt_flags(dest_path); in test_priv_mount_unpriv_remount() 314 dest_path, orig_path); in test_priv_mount_unpriv_remount()
|
/external/python/setuptools/setuptools/tests/ |
D | test_integration.py | 76 dest_path = glob.glob(os.path.join(target, pkgname + '*.egg')) 77 assert dest_path 78 assert os.path.exists(os.path.join(dest_path[0], pkgname, modulename))
|
/external/autotest/site_utils/ |
D | gs_offloader.py | 552 def offload(self, dir_entry, dest_path, job_complete_time): argument 577 self._full_offload(dir_entry, dest_path, job_complete_time) 583 def _full_offload(self, dir_entry, dest_path, job_complete_time): argument 618 def _full_offload(self, dir_entry, dest_path, job_complete_time): argument 631 self._try_offload(dir_entry, dest_path, stdout_file, 638 self._try_offload(dir_entry, dest_path, stdout_file, 666 def _try_offload(self, dir_entry, dest_path, argument 693 gs_path = '%s%s' % (self._gs_uri, dest_path) 769 def _full_offload(self, dir_entry, dest_path, job_complete_time): argument
|
/external/autotest/site_utils/lxc/ |
D | container.py | 529 def install_ssp_isolate(self, isolate_hash, dest_path=None): argument 544 dest_path = dest_path or os.path.join(self.rootfs, 'usr', 'local') 555 sha=isolate_hash, dest_dir=dest_path,
|
/external/cldr/tools/scripts/ |
D | coll2icu.py | 271 dest_path = os.path.join(dest_root, basename) 273 with codecs.open(dest_path, "w", "UTF-8") as dest:
|
/external/autotest/server/cros/servo/ |
D | servo.py | 757 dest_path = os.path.join('/tmp', os.path.basename(image_path)) 758 self._servo_host.send_file(image_path, dest_path) 759 return dest_path
|
/external/tensorflow/tensorflow/contrib/learn/python/learn/estimators/ |
D | estimator.py | 1483 dest_path = os.path.dirname(dest_absolute) 1484 gfile.MakeDirs(dest_path)
|
/external/python/cpython3/Modules/ |
D | posixmodule.c | 7325 _joinW(WCHAR *dest_path, const WCHAR *root, const WCHAR *rest) in _joinW() argument 7328 return wcscpy_s(dest_path, MAX_PATH, rest); in _joinW() 7331 if (wcscpy_s(dest_path, MAX_PATH, root)) { in _joinW() 7335 if (dest_path[0] && wcscat_s(dest_path, MAX_PATH, L"\\")) { in _joinW() 7339 return wcscat_s(dest_path, MAX_PATH, rest); in _joinW()
|