Home
last modified time | relevance | path

Searched refs:new_path (Results 1 – 25 of 137) sorted by relevance

123456

/external/autotest/utils/frozen_chromite/lib/
Dpath_util.py160 new_path = None
178 new_path = self._TranslatePath(path, chroot_path, '/')
180 if new_path is None and chroot_link is not None:
181 new_path = self._TranslatePath(path, chroot_link, '/')
184 if new_path is None:
185 new_path = self._TranslatePath(path, self._GetCachePath(),
189 if new_path is None and source_path is not None:
190 new_path = self._TranslatePath(path, source_path,
193 if new_path is None:
196 return new_path
[all …]
/external/linux-kselftest/tools/testing/selftests/filesystems/fat/
Drun_fat_tests.sh45 local new_path="${MNT_PATH}/new_file"
48 echo new | sudo tee "${new_path}" >/dev/null 2>&1
49 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
52 grep old "${new_path}" >/dev/null 2>&1
60 local new_path="${dir_path}/new_file"
64 echo new | sudo tee "${new_path}" >/dev/null 2>&1
65 sudo "${rename_exchange}" "${old_path}" "${new_path}" >/dev/null 2>&1
68 grep old "${new_path}" >/dev/null 2>&1
/external/cronet/stable/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/files/
Dfile_path.cc110 FilePath new_path(path_); in Append() local
111 new_path.StripTrailingSeparatorsInternal(); in Append()
116 if (!appended.empty() && !new_path.path_.empty()) { in Append()
119 if (!IsSeparator(new_path.path_.back())) { in Append()
121 if (FindDriveLetter(new_path.path_) + 1 != new_path.path_.length()) { in Append()
122 new_path.path_.append(1, kSeparators[0]); in Append()
127 new_path.path_.append(appended); in Append()
128 return new_path; in Append()
/external/cronet/tot/base/allocator/partition_allocator/src/partition_alloc/partition_alloc_base/files/
Dfile_path.cc110 FilePath new_path(path_); in Append() local
111 new_path.StripTrailingSeparatorsInternal(); in Append()
116 if (!appended.empty() && !new_path.path_.empty()) { in Append()
119 if (!IsSeparator(new_path.path_.back())) { in Append()
121 if (FindDriveLetter(new_path.path_) + 1 != new_path.path_.length()) { in Append()
122 new_path.path_.append(1, kSeparators[0]); in Append()
127 new_path.path_.append(appended); in Append()
128 return new_path; in Append()
/external/libchrome/base/files/
Dfile_path.cc309 FilePath new_path(path_); in DirName() local
310 new_path.StripTrailingSeparatorsInternal(); in DirName()
316 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
319 new_path.path_.find_last_of(kSeparators, StringType::npos, in DirName()
323 new_path.path_.resize(letter + 1); in DirName()
326 new_path.path_.resize(letter + 2); in DirName()
328 IsSeparator(new_path.path_[letter + 1])) { in DirName()
331 new_path.path_.resize(letter + 3); in DirName()
334 new_path.path_.resize(last_separator); in DirName()
337 new_path.StripTrailingSeparatorsInternal(); in DirName()
[all …]
/external/cronet/stable/base/files/
Dfile_path.cc324 FilePath new_path(path_); in DirName() local
325 new_path.StripTrailingSeparatorsInternal(); in DirName()
331 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
334 new_path.path_.find_last_of(kSeparators, StringType::npos, in DirName()
338 new_path.path_.resize(letter + 1); in DirName()
341 new_path.path_.resize(letter + 2); in DirName()
343 IsSeparator(new_path.path_[letter + 1])) { in DirName()
346 new_path.path_.resize(letter + 3); in DirName()
355 if (AreAllSeparators(new_path.path_.substr(0, last_separator + 1))) { in DirName()
356 new_path.path_.resize(last_separator + 1); in DirName()
[all …]
/external/cronet/tot/base/files/
Dfile_path.cc324 FilePath new_path(path_); in DirName() local
325 new_path.StripTrailingSeparatorsInternal(); in DirName()
331 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName()
334 new_path.path_.find_last_of(kSeparators, StringType::npos, in DirName()
338 new_path.path_.resize(letter + 1); in DirName()
341 new_path.path_.resize(letter + 2); in DirName()
343 IsSeparator(new_path.path_[letter + 1])) { in DirName()
346 new_path.path_.resize(letter + 3); in DirName()
355 if (AreAllSeparators(new_path.path_.substr(0, last_separator + 1))) { in DirName()
356 new_path.path_.resize(last_separator + 1); in DirName()
[all …]
/external/rust/android-crates-io/crates/rustix/src/fs/
Dabs.rs148 pub fn rename<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in rename()
150 new_path.into_with_c_str(|new_path| backend::fs::syscalls::rename(old_path, new_path)) in rename()
198 pub fn link<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in link()
200 new_path.into_with_c_str(|new_path| backend::fs::syscalls::link(old_path, new_path)) in link()
213 pub fn symlink<P: path::Arg, Q: path::Arg>(old_path: P, new_path: Q) -> io::Result<()> { in symlink()
215 new_path.into_with_c_str(|new_path| backend::fs::syscalls::symlink(old_path, new_path)) in symlink()
Dat.rs205 new_path: Q, in linkat()
209 new_path.into_with_c_str(|new_path| { in linkat()
214 new_path, in linkat()
253 new_path: Q, in renameat()
256 new_path.into_with_c_str(|new_path| { in renameat()
261 new_path, in renameat()
281 new_path: Q, in renameat_with()
285 new_path.into_with_c_str(|new_path| { in renameat_with()
290 new_path, in renameat_with()
309 new_path: Q, in symlinkat()
[all …]
/external/autotest/client/bin/result_tools/
Dzip_file_throttler.py49 new_path = os.path.join(os.path.dirname(file_info.path), new_name)
50 if os.path.exists(new_path):
51 utils_lib.LOG('File %s already exists, removing...' % new_path)
52 if not throttler_lib.try_delete_file_on_disk(new_path):
55 with tarfile.open(new_path, 'w:gz') as tar:
60 throttler_lib.try_delete_file_on_disk(new_path)
65 os.utime(new_path, (stat.st_atime, stat.st_mtime))
/external/sandboxed-api/sandboxed_api/sandbox2/testcases/
Dnamespace.cc64 std::string new_path = JoinPath(path, entry); in ListDirectoriesRecursively() local
66 if (new_path == "/sys" || new_path == "/proc") { in ListDirectoriesRecursively()
67 files.push_back(new_path); in ListDirectoriesRecursively()
70 if (IsDirectory(new_path)) { in ListDirectoriesRecursively()
71 ListDirectoriesRecursively(new_path, files); in ListDirectoriesRecursively()
73 files.push_back(new_path); in ListDirectoriesRecursively()
/external/icing/icing/index/
Dproperty-existence-indexing-handler.cc41 std::string new_path = current_path; in ConstructPropertyExistenceMetaToken() local
42 if (!new_path.empty()) { in ConstructPropertyExistenceMetaToken()
43 new_path.append("."); in ConstructPropertyExistenceMetaToken()
45 new_path.append(property.name()); in ConstructPropertyExistenceMetaToken()
47 ConstructPropertyExistenceMetaToken(new_path, nested_document, in ConstructPropertyExistenceMetaToken()
65 absl_ports::StrCat(kPropertyExistenceTokenPrefix, new_path)); in ConstructPropertyExistenceMetaToken()
/external/ltp/testcases/kernel/fs/iso9660/
Disofs.sh33 local i new_path
38 new_path="$cur_path/subdir_$i"
39 mkdir -p "$new_path"
40 ROD_SILENT dd if=/dev/urandom of="$new_path/file" bs=1024 count=100
41 gen_fs_tree "$new_path" $((cur_depth + 1))
/external/bazelbuild-rules_rust/tools/upstream_wrapper/src/
Dmain.rs28 let mut new_path = OsString::from(tool_directory); in main() localVariable
29 new_path.push(PATH_SEPARATOR); in main()
30 new_path.push(&old_path); in main()
39 .env("PATH", new_path) in main()
/external/cronet/stable/net/base/
Dfilename_util.cc149 std::string new_path; in FileURLToFilePath() local
151 new_path = path; in FileURLToFilePath()
152 base::ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/"); in FileURLToFilePath()
153 path.swap(new_path); in FileURLToFilePath()
154 } while (new_path != path); in FileURLToFilePath()
/external/cronet/tot/net/base/
Dfilename_util.cc149 std::string new_path; in FileURLToFilePath() local
151 new_path = path; in FileURLToFilePath()
152 base::ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/"); in FileURLToFilePath()
153 path.swap(new_path); in FileURLToFilePath()
154 } while (new_path != path); in FileURLToFilePath()
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/tool/
DCldrConfigOption.java18 String new_path, in show() argument
51 + (new_path == null ? "" : ";\tnew_path=" + new_path) in show()
/external/angle/third_party/spirv-tools/src/tools/objdump/
Dobjdump.cpp81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles() local
83 if (!overwrite && std::filesystem::exists(new_path)) { in OutputSourceFiles()
90 std::cout << "Exporting " << new_path << std::endl; in OutputSourceFiles()
91 if (!WriteFile<char>(new_path.string().c_str(), "w", code.c_str(), in OutputSourceFiles()
/external/swiftshader/third_party/SPIRV-Tools/tools/objdump/
Dobjdump.cpp81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles() local
83 if (!overwrite && std::filesystem::exists(new_path)) { in OutputSourceFiles()
90 std::cout << "Exporting " << new_path << std::endl; in OutputSourceFiles()
91 if (!WriteFile<char>(new_path.string().c_str(), "w", code.c_str(), in OutputSourceFiles()
/external/deqp-deps/SPIRV-Tools/tools/objdump/
Dobjdump.cpp81 std::filesystem::path new_path = outdir / old_path.filename(); in OutputSourceFiles() local
83 if (!overwrite && std::filesystem::exists(new_path)) { in OutputSourceFiles()
90 std::cout << "Exporting " << new_path << std::endl; in OutputSourceFiles()
91 if (!WriteFile<char>(new_path.string().c_str(), "w", code.c_str(), in OutputSourceFiles()
/external/toolchain-utils/llvm_tools/patch_sync/src/
Dversion_control.rs226 let new_path = if let Some(captures) = suffix_matcher.captures(ebuild_name) { in rev_bump_llvm() localVariable
231 let new_path = ebuild_dir.join(new_filename); in rev_bump_llvm() localVariable
232 fs::rename(&ebuild, &new_path)?; in rev_bump_llvm()
233 new_path in rev_bump_llvm()
237 let new_path = ebuild_dir.join(new_filename.as_ref()); in rev_bump_llvm() localVariable
238 fs::rename(&ebuild, &new_path)?; in rev_bump_llvm()
239 new_path in rev_bump_llvm()
241 Ok(new_path) in rev_bump_llvm()
/external/fonttools/Tests/qu2cu/
Dqu2cu_cli_test.py21 new_path = tmpdir / path.basename
22 path.copy(new_path)
23 result.append(new_path)
/external/libcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/
Dcurrent_path.pass.cpp55 const path new_path = StaticEnv::Dir; in TEST_CASE() local
56 current_path(new_path); in TEST_CASE()
57 TEST_CHECK(current_path() == new_path); in TEST_CASE()
/external/crosvm/cros_fdt/src/
Dpath.rs47 let mut new_path = self.0.clone(); in push() localVariable
48 if !new_path.ends_with(PATH_SEP) { in push()
49 new_path.push_str(PATH_SEP); in push()
51 new_path.push_str( in push()
56 Ok(Self(Self::sanitize(&new_path)?)) in push()
/external/cronet/stable/third_party/libc++/src/test/std/input.output/filesystems/fs.op.funcs/fs.op.current_path/
Dcurrent_path.pass.cpp56 const path new_path = static_env.Dir; in current_path_after_change_test() local
57 current_path(new_path); in current_path_after_change_test()
58 assert(current_path() == new_path); in current_path_after_change_test()

123456