/external/python/cpython2/Lib/test/ |
D | test_dircache.py | 14 self.tempdir = tempfile.mkdtemp() 17 for fname in os.listdir(self.tempdir): 19 os.rmdir(self.tempdir) 22 f = open(os.path.join(self.tempdir, fname), 'w') 26 os.mkdir(os.path.join(self.tempdir, fname)) 29 fname = os.path.join(self.tempdir, fname) 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) [all …]
|
D | test_tarfile.py | 920 tempdir = os.path.join(TEMPDIR, "exclude") 921 os.mkdir(tempdir) 924 name = os.path.join(tempdir, name) 933 tar.add(tempdir, arcname="empty_dir", exclude=exclude) 944 shutil.rmtree(tempdir) 947 tempdir = os.path.join(TEMPDIR, "filter") 948 os.mkdir(tempdir) 951 name = os.path.join(tempdir, name) 963 tar.add(tempdir, arcname="empty_dir", filter=filter) 976 shutil.rmtree(tempdir) [all …]
|
D | test_tempfile.py | 294 oldmode = mode = os.stat(tempfile.tempdir).st_mode 296 os.chmod(tempfile.tempdir, mode) 298 if os.access(tempfile.tempdir, os.W_OK): 303 self.assertEqual(os.listdir(tempfile.tempdir), []) 305 os.chmod(tempfile.tempdir, oldmode) 309 tempdir = os.path.join(tempfile.tempdir, 'nonexistent') 310 with support.swap_attr(tempfile, 'tempdir', tempdir): 317 tempdir = os.path.join(tempfile.tempdir, 'file') 318 open(tempdir, 'wb').close() 319 with support.swap_attr(tempfile, 'tempdir', tempdir):
|
/external/curl/src/ |
D | tool_dirhie.c | 104 char *tempdir; in create_dir_hierarchy() local 125 tempdir = strtok(outdup, PATH_DELIMITERS); in create_dir_hierarchy() 127 while(tempdir != NULL) { in create_dir_hierarchy() 134 snprintf(&dirbuildup[dlen], outlen - dlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy() 136 if(outdup == tempdir) in create_dir_hierarchy() 138 strcpy(dirbuildup, tempdir); in create_dir_hierarchy() 140 snprintf(dirbuildup, outlen, "%s%s", DIR_CHAR, tempdir); in create_dir_hierarchy() 150 tempdir = tempdir2; in create_dir_hierarchy()
|
/external/swiftshader/third_party/subzero/pydir/ |
D | build-runtime.py | 42 srcdir, tempdir, rtdir, verbose, excluded_targets): argument 48 return template.format(dir=tempdir, target=target_info.target) 188 tempdir = tempfile.mkdtemp() 198 '-o', '{dir}/szrt.tmp.bc'.format(dir=tempdir) 204 '{dir}/szrt.tmp.bc'.format(dir=tempdir), 206 '-o', '{dir}/szrt.ll'.format(dir=tempdir) 208 ll_files = ['{dir}/szrt.ll'.format(dir=tempdir), 212 srcdir, tempdir, rtdir, args.verbose, 215 srcdir, tempdir, rtdir, args.verbose, 218 srcdir, tempdir, rtdir, args.verbose, [all …]
|
D | build-pnacl-ir.py | 27 tempdir = tempfile.mkdtemp() variable 31 llname = os.path.join(tempdir, basename + '.ll') 44 shutil.rmtree(tempdir)
|
/external/autotest/client/bin/ |
D | site_sysinfo_unittest.py | 21 self.tempdir = autotemp.tempdir(unique_id='diffable_logdir') 22 self.src_dir = os.path.join(self.tempdir.name, 'src') 23 self.dest_dir = os.path.join(self.tempdir.name, 'dest') 43 self.tempdir.clean()
|
/external/curl/ |
D | maketgz | 184 rm -rf $tempdir 185 mkdir $tempdir 186 cd $tempdir 191 rm -rf $tempdir 196 tempdir=".builddir"
|
/external/autotest/client/common_lib/ |
D | autotemp_unittest.py | 32 class tempdir(unittest.TestCase): class 35 temp_dir = autotemp.tempdir(unique_id='dir') 41 temp_dir = autotemp.tempdir(unique_id='clean') 49 temp_dir = autotemp.tempdir(unique_id='del')
|
/external/autotest/client/cros/ |
D | ownership.py | 42 tempdir = autotemp.tempdir(unique_id='ownership') variable in scoped_tempfile 287 keyfile = scoped_tempfile.tempdir.name + '/private.key' 288 certfile = scoped_tempfile.tempdir.name + '/cert.pem' 320 for_push = scoped_tempfile(scoped_tempfile.tempdir.name + '/for_push.p12') 340 outfile = scoped_tempfile(scoped_tempfile.tempdir.name + '/pubkey.der') 366 pem_key_file = scoped_tempfile(scoped_tempfile.tempdir.name + '/pkey.pem')
|
/external/autotest/client/site_tests/power_IdleSuspend/ |
D | power_IdleSuspend.py | 43 self.tempdir = tempfile.mkdtemp(prefix='IdleSuspend.') 44 logging.info('using temporary directory %s', self.tempdir) 49 tmp_path = '%s/%s' % (self.tempdir, key) 56 fifo_path = '%s/sys_power_state' % self.tempdir
|
/external/python/cpython2/Lib/distutils/tests/ |
D | test_msvc9compiler.py | 143 tempdir = self.mkdtemp() 144 manifest = os.path.join(tempdir, 'manifest') 167 tempdir = self.mkdtemp() 168 manifest = os.path.join(tempdir, 'manifest')
|
/external/toolchain-utils/fdo_scripts/ |
D | summarize_hot_blocks.py | 64 def __init__(self, data_dir, cutoff, output_dir, tempdir): argument 68 self._tempdir = tempdir 172 tempdir = tempfile.mkdtemp() 175 tempdir) 180 shutil.rmtree(tempdir, ignore_errors=True)
|
/external/mksh/src/ |
D | check.pl | 308 until (mkdir(($tempdir = sprintf("%s%03d", $temps, $tempi)), 0700)) { 311 die "$prog: couldn't cd to $tempdir - $!\n" if !chdir($tempdir); 335 $tempdir = "${temp_dir}/rtd"; 336 mkdir($tempdir, 0700) or die "$prog: couldn't mkdir $tempdir - $!\n"; 378 &scrub_dir($tempdir) if defined $tempdir; 379 rmdir($tempdir) if defined $tempdir; 457 return undef if !&scrub_dir($tempdir); 470 if (!chdir($tempdir)) { 471 print STDERR "$prog: couldn't cd to $tempdir - $!\n";
|
/external/devlib/devlib/instrument/ |
D | daq.py | 82 tempdir = tempfile.mkdtemp(prefix='daq-raw-') 83 self.execute('get_data', output_directory=tempdir) 85 for entry in os.listdir(tempdir): 87 path = os.path.join(tempdir, entry) 102 raise HostError(message.format(site, tempdir))
|
/external/skia/tools/ |
D | merge_static_libs.py | 23 tempdir = tempfile.mkdtemp() 28 os.chdir(tempdir) 52 shutil.rmtree(tempdir)
|
/external/autotest/utils/ |
D | run_pylint.py | 388 tempdir = None 390 tempdir = autotemp.tempdir() 391 temp_files = [os.path.join(tempdir.name, file_path.split('/')[-1:][0]) 399 if tempdir: 400 tempdir.clean()
|
/external/autotest/server/hosts/ |
D | sonic_host.py | 86 tempdir = autotemp.tempdir() 87 local_dest = os.path.join(tempdir.name, 'content_shell.sh') 108 tempdir.clean()
|
/external/autotest/tko/parsers/test/ |
D | execute_parser.py | 28 tempdir, results_dirpath = scenario_base.load_results_dir(scenario_dirpath) 36 tempdir.clean()
|
/external/autotest/server/cros/dynamic_suite/ |
D | reporting_utils.py | 300 tempdir = autotemp.tempdir() 302 cache_dir=tempdir.name) 310 tempdir.clean()
|
/external/python/cpython2/Lib/multiprocessing/ |
D | util.py | 139 tempdir = tempfile.mkdtemp(prefix='pymp-') 140 info('created temp directory %s', tempdir) 141 Finalize(None, shutil.rmtree, args=[tempdir], exitpriority=-100) 142 current_process()._tempdir = tempdir
|
/external/vboot_reference/scripts/image_signing/ |
D | common_minimal.sh | 81 local tempdir=$(mktemp -d) 82 echo "$tempdir" >> $TEMP_DIR_LIST 83 echo $tempdir
|
/external/libchrome/base/json/ |
D | json_value_serializer_unittest.cc | 151 ScopedTempDir tempdir; in TEST() local 152 ASSERT_TRUE(tempdir.CreateUniqueTempDir()); in TEST() 154 FilePath temp_file(tempdir.path().AppendASCII("test.json")); in TEST() 175 ScopedTempDir tempdir; in TEST() local 176 ASSERT_TRUE(tempdir.CreateUniqueTempDir()); in TEST() 178 FilePath temp_file(tempdir.path().AppendASCII("test.json")); in TEST()
|
/external/python/cpython2/Lib/ |
D | tempfile.py | 266 tempdir = None variable 270 global tempdir 271 if tempdir is None: 274 if tempdir is None: 275 tempdir = _get_default_tempdir() 278 return tempdir
|
/external/autotest/server/ |
D | profilers.py | 166 tempdir = tempfile.mkdtemp(dir=self.job.tmpdir) 168 host.get_file(results_dir + '/', tempdir) 171 utils.merge_trees(tempdir, local_dir) 172 shutil.rmtree(tempdir, ignore_errors=True)
|