/dports/net/cloud-init/cloud-init-21.4/tests/unittests/ |
H A D | test_reporting_hyperv.py | 33 self.tmp_file_path = self.tmp_path('kvp_pool_file') 34 util.ensure_file(self.tmp_file_path) 38 kvp_file_path=self.tmp_file_path) 49 kvp_file_path=self.tmp_file_path) 58 kvp_file_path=self.tmp_file_path) 66 os.remove(self.tmp_file_path) 68 kvp_file_path=self.tmp_file_path) 76 kvp_file_path=self.tmp_file_path) 96 with open(self.tmp_file_path, "wb+") as f: 120 with open(self.tmp_file_path, "wb+") as f: [all …]
|
/dports/devel/py-os-brick/os-brick-5.1.0/os_brick/initiator/connectors/ |
H A D | vmware.py | 121 with open(tmp_file_path, "wb") as tmp_file: 139 tmp_file_path = self._create_temp_file( 147 tmp_file_path, session, backing, vmdk_path, vmdk_size) 153 last_modified = os.path.getmtime(tmp_file_path) 154 return {'path': tmp_file_path, 'last_modified': last_modified} 257 os.path.basename(tmp_file_path)) 261 with open(tmp_file_path, "rb") as tmp_file: 301 tmp_file_path = device_info['path'] 302 if not os.path.exists(tmp_file_path): 303 msg = _("Vmdk: %s not found.") % tmp_file_path [all …]
|
/dports/editors/libreoffice/libreoffice-7.2.6.2/sal/osl/unx/ |
H A D | tempfile.cxx | 186 rtl_uString* tmp_file_path = nullptr; in osl_create_temp_file_impl_() local 200 &tmp_file_path, in osl_create_temp_file_impl_() 205 &tmp_file_path, in osl_create_temp_file_impl_() 213 puchr = rtl_uString_getStr(tmp_file_path); in osl_create_temp_file_impl_() 220 &tmp_file_path, in osl_create_temp_file_impl_() 234 &tmp_file_path, in osl_create_temp_file_impl_() 241 tmp_file_path, &tmp_file_url); in osl_create_temp_file_impl_() 268 rtl_uString_assign(ppustr_temp_file_name, tmp_file_path); in osl_create_temp_file_impl_() 270 rtl_uString_release(tmp_file_path); in osl_create_temp_file_impl_()
|
/dports/editors/libreoffice6/libreoffice-6.4.7.2/sal/osl/unx/ |
H A D | tempfile.cxx | 183 rtl_uString* tmp_file_path = nullptr; in osl_create_temp_file_impl_() local 197 &tmp_file_path, in osl_create_temp_file_impl_() 202 &tmp_file_path, in osl_create_temp_file_impl_() 210 puchr = rtl_uString_getStr(tmp_file_path); in osl_create_temp_file_impl_() 217 &tmp_file_path, in osl_create_temp_file_impl_() 231 &tmp_file_path, in osl_create_temp_file_impl_() 238 tmp_file_path, &tmp_file_url); in osl_create_temp_file_impl_() 265 rtl_uString_assign(ppustr_temp_file_name, tmp_file_path); in osl_create_temp_file_impl_() 267 rtl_uString_release(tmp_file_path); in osl_create_temp_file_impl_()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/base/files/ |
H A D | important_file_writer.cc | 102 void DeleteTmpFile(const FilePath& tmp_file_path, in DeleteTmpFile() argument 104 if (!DeleteFile(tmp_file_path, false)) { in DeleteTmpFile() 144 FilePath tmp_file_path; in WriteFileAtomically() local 145 if (!CreateTemporaryFileInDir(path.DirName(), &tmp_file_path)) { in WriteFileAtomically() 155 File tmp_file(tmp_file_path, File::FLAG_OPEN | File::FLAG_WRITE); in WriteFileAtomically() 162 DeleteFile(tmp_file_path, false); in WriteFileAtomically() 180 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically() 186 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically() 191 if (!ReplaceFile(tmp_file_path, path, &replace_file_error)) { in WriteFileAtomically() 197 DeleteTmpFile(tmp_file_path, histogram_suffix); in WriteFileAtomically()
|
/dports/audio/hydrogen/hydrogen-1.0.1/src/tests/ |
H A D | functional_tests.cpp | 126 auto outFile = Filesystem::tmp_file_path("test.wav"); in testExportAudio() 137 auto outFile = Filesystem::tmp_file_path("smf1single.test.mid"); in testExportMIDISMF1Single() 149 auto outFile = Filesystem::tmp_file_path("smf1multi.test.mid"); in testExportMIDISMF1Multi() 161 auto outFile = Filesystem::tmp_file_path("smf0.test.mid"); in testExportMIDISMF0() 185 auto outFile = Filesystem::tmp_file_path("velocityautomation.wav"); in testExportVelocityAutomationAudio() 196 auto outFile = Filesystem::tmp_file_path("smf1.velocityautomation.mid"); in testExportVelocityAutomationMIDISMF1() 209 auto outFile = Filesystem::tmp_file_path("smf0.velocityautomation.mid"); in testExportVelocityAutomationMIDISMF0()
|
/dports/dns/yadifa/yadifa-2.5.3-10333/lib/dnsdb/src/ |
H A D | xfr_copy.c | 148 char tmp_file_path[PATH_MAX]; in xfr_copy() local 152 …if(ISOK(ret = xfr_copy_create_file(&xos, tmp_file_path, sizeof(tmp_file_path), base_data_path, xfr… in xfr_copy() 191 if(rename(tmp_file_path, file_path) < 0) in xfr_copy() 209 unlink(tmp_file_path); in xfr_copy()
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/base/files/ |
H A D | important_file_writer.cc | 96 const FilePath& tmp_file_path, in DeleteTmpFileWithRetry() argument 121 if (!DeleteFile(tmp_file_path)) { in DeleteTmpFileWithRetry() 132 tmp_file_path, in DeleteTmpFileWithRetry() 219 FilePath tmp_file_path; in WriteFileAtomicallyImpl() local 221 CreateAndOpenTemporaryFileInDir(path.DirName(), &tmp_file_path); in WriteFileAtomicallyImpl() 247 DeleteTmpFileWithRetry(std::move(tmp_file), tmp_file_path, in WriteFileAtomicallyImpl() 255 DeleteTmpFileWithRetry(std::move(tmp_file), tmp_file_path, in WriteFileAtomicallyImpl() 274 const bool result = ReplaceFile(tmp_file_path, path, &replace_file_error); in WriteFileAtomicallyImpl() 286 DeleteTmpFileWithRetry(File(), tmp_file_path, histogram_suffix); in WriteFileAtomicallyImpl()
|
/dports/net-p2p/bazarr/bazarr-1.0.2/libs/git/index/ |
H A D | util.py | 29 self.tmp_file_path = self.file_path + tempfile.mktemp('', '', '') 32 os.rename(self.file_path, self.tmp_file_path) 37 if osp.isfile(self.tmp_file_path): 40 os.rename(self.tmp_file_path, self.file_path)
|
/dports/lang/parrot/parrot-8.1.0/t/perl/ |
H A D | Parrot_IO.t | 52 my $tmpfile = tmp_file_path($fullname); 96 my $f3 = Parrot::IO::File->new( tmp_file_path( 't', 'one', 'two', 'file3.bar' ) ); 196 unlink( tmp_file_path(qw(t one two file2.foo)) ); 197 unlink( tmp_file_path(qw(t one two file3.bar)) ); 198 unlink( tmp_file_path(qw(t one file1.txt)) ); 210 sub tmp_file_path {
|
H A D | Parrot_Docs.t | 54 $f = Parrot::Docs::File->new( tmp_file_path('file.pod') ); 138 Parrot::Docs::File->new( tmp_file_path('file.pod') )->delete(); 149 sub tmp_file_path {
|
/dports/devel/py-gitpython/GitPython-3.1.24/git/index/ |
H A D | util.py | 41 self.tmp_file_path = str(self.file_path) + tempfile.mktemp('', '', '') 44 os.rename(self.file_path, self.tmp_file_path) 49 if osp.isfile(self.tmp_file_path): 52 os.rename(self.tmp_file_path, self.file_path)
|
/dports/devel/py-os-brick/os-brick-5.1.0/os_brick/tests/initiator/connectors/ |
H A D | test_vmware.py | 130 tmp_file_path = mock.sentinel.tmp_file_path 136 tmp_file_path, session, backing, vmdk_path, vmdk_size) 138 file_open.assert_called_once_with(tmp_file_path, 'wb') 170 tmp_file_path = mock.sentinel.tmp_file_path 171 create_temp_file.return_value = tmp_file_path 182 self.assertEqual(tmp_file_path, ret['path']) 189 tmp_file_path, session, backing, props['vmdk_path'], 254 tmp_file_path = '/tmp/foo.vmdk' 258 backing, tmp_file_path, session, ds_ref, dc_ref, vmdk_path) 264 file_open.assert_called_once_with(tmp_file_path, "rb")
|
/dports/sysutils/terraform/terraform-1.0.11/vendor/github.com/packer-community/winrmcp/winrmcp/ |
H A D | cp.go | 117 $tmp_file_path = [System.IO.Path]::GetFullPath("%s") 131 if (Test-Path $tmp_file_path) { 132 $reader = [System.IO.File]::OpenText($tmp_file_path) 184 $tmp_file_path = [System.IO.Path]::GetFullPath("%s") 185 if (Test-Path $tmp_file_path) { 186 Remove-Item $tmp_file_path -ErrorAction SilentlyContinue
|
/dports/devel/py-os-win/os-win-5.5.0/os_win/utils/ |
H A D | pathutils.py | 170 fd, tmp_file_path = tempfile.mkstemp(suffix=suffix, *args, **kwargs) 172 return tmp_file_path 182 tmp_file_path = None 184 tmp_file_path = self.create_temporary_file(suffix, *args, **kwargs) 185 yield tmp_file_path 187 if tmp_file_path: 188 fileutils.delete_if_exists(tmp_file_path)
|
/dports/audio/carla/Carla-2.4.1/source/modules/lilv/lilv-0.24.0/test/test.lv2/ |
H A D | test.c | 43 char* tmp_file_path; member 59 free(test->tmp_file_path); in cleanup() 100 test->tmp_file_path = (char*)malloc(L_tmpnam); in instantiate() 104 tmpnam(test->tmp_file_path); in instantiate() 234 FILE* file = fopen(plugin->tmp_file_path, "w"); in save() 238 plugin->tmp_file_path); in save() 240 plugin->tmp_file_path); in save()
|
/dports/misc/py-gluonnlp/gluon-nlp-0.10.0/scripts/conversion_tools/ |
H A D | convert_pytorch_model.py | 56 tmp_file_path = os.path.expanduser(os.path.join(args.out_dir, 'tmp')) variable 57 with open(tmp_file_path, 'w') as f: 59 hash_full, hash_short = get_hash(tmp_file_path) 172 bert.save_parameters(tmp_file_path) 173 hash_full, hash_short = get_hash(tmp_file_path)
|
H A D | convert_tf_model.py | 70 tmp_file_path = os.path.join(out_dir, 'tmp') variable 71 with open(tmp_file_path, 'w') as f: 73 hash_full, hash_short = get_hash(tmp_file_path) 236 bert.save_parameters(tmp_file_path) 237 hash_full, hash_short = get_hash(tmp_file_path)
|
H A D | convert_paddle_to_gluon.py | 154 tmp_file_path = os.path.expanduser(os.path.join(output_dir, 'tmp')) 157 with open(tmp_file_path, 'w') as f: 159 hash_full, hash_short = get_hash(tmp_file_path) 241 bert.save_parameters(tmp_file_path) 242 hash_full, hash_short = get_hash(tmp_file_path)
|
/dports/www/onionshare/onionshare-2.2/tests/ |
H A D | test_onionshare_settings.py | 89 tmp_file, tmp_file_path = tempfile.mkstemp() 92 settings_obj.filename = tmp_file_path 99 os.remove(tmp_file_path) 100 assert os.path.exists(tmp_file_path) is False
|
/dports/devel/py-os-win/os-win-5.5.0/os_win/tests/functional/ |
H A D | test_pathutils.py | 58 tmp_file_path = os.path.join(tmp_dir, 60 with open(tmp_file_path, 'w') as f: 62 tmp_file_paths.append(tmp_file_path)
|
/dports/misc/py-gluonnlp/gluon-nlp-0.10.0/scripts/language_model/conversion_utils/ |
H A D | convert_xlnet.py | 160 tmp_file_path = os.path.expanduser(os.path.join(args.out_dir, 'tmp')) 161 with open(tmp_file_path, 'w') as f: 163 hash_full, hash_short = get_hash(tmp_file_path) 168 model.save_parameters(tmp_file_path) 169 hash_full, hash_short = get_hash(tmp_file_path) 170 os.remove(tmp_file_path)
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/net/data/ocsp_unittest/ |
H A D | annotate_test_data.py | 70 tmp_file_path = "tmp_ocsp.der" 71 WriteStringToFile(block_data, tmp_file_path) 73 "-respin", tmp_file_path], 78 os.remove(tmp_file_path)
|
/dports/security/py-angr/angr-9.0.5405/angr/procedures/libc/ |
H A D | tmpnam.py | 17 tmp_file_path = tempfile.mktemp() 21 tmp_file_path.encode() + b'\x00')
|
/dports/audio/audacity/audacity-Audacity-3.1.3/lib-src/lv2/lilv/test/test.lv2/ |
H A D | test.c | 52 char tmp_file_path[sizeof(TMP_TEMPLATE)]; member 114 strncpy(test->tmp_file_path, TMP_TEMPLATE, strlen(TMP_TEMPLATE) + 1); in instantiate() 115 mkstemp(test->tmp_file_path); in instantiate() 266 FILE* file = fopen(plugin->tmp_file_path, "w"); in save() 270 plugin->tmp_file_path); in save() 272 plugin->tmp_file_path); in save()
|