/external/webrtc/webrtc/base/ |
D | fileutils.h | 156 const Pathname &new_path) = 0; 163 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0; 167 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFileOrFolder() argument 169 return MoveFile(old_path, new_path); in MoveFileOrFolder() 171 return MoveFolder(old_path, new_path); in MoveFileOrFolder() 178 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0; 181 bool CopyFolder(const Pathname &old_path, const Pathname &new_path); 183 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in CopyFileOrFolder() argument 185 return CopyFile(old_path, new_path); in CopyFileOrFolder() 187 return CopyFolder(old_path, new_path); in CopyFileOrFolder() [all …]
|
D | unixfilesystem.cc | 223 const Pathname &new_path) { in MoveFile() argument 229 << " to " << new_path.pathname(); in MoveFile() 230 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { in MoveFile() 233 if (!CopyFile(old_path, new_path)) in MoveFile() 242 const Pathname &new_path) { in MoveFolder() argument 248 << " to " << new_path.pathname(); in MoveFolder() 249 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { in MoveFolder() 252 if (!CopyFolder(old_path, new_path)) in MoveFolder() 268 const Pathname &new_path) { in CopyFile() argument 270 << " to " << new_path.pathname(); in CopyFile() [all …]
|
D | win32filesystem.cc | 232 const Pathname &new_path) { in MoveFile() argument 238 << " to " << new_path.pathname(); in MoveFile() 240 ToUtf16(new_path.pathname()).c_str()) != 0; in MoveFile() 244 const Pathname &new_path) { in MoveFolder() argument 250 << " to " << new_path.pathname(); in MoveFolder() 252 ToUtf16(new_path.pathname()).c_str()) == 0) { in MoveFolder() 257 if (!CopyFolder(old_path, new_path)) in MoveFolder() 292 const Pathname &new_path) { in CopyFile() argument 294 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0; in CopyFile()
|
D | win32filesystem.h | 46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 55 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
D | unixfilesystem.h | 67 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; 68 bool MoveFolder(const Pathname& old_path, const Pathname& new_path) override; 73 bool CopyFile(const Pathname& old_path, const Pathname& new_path) override;
|
D | fileutils_mock.h | 177 bool MoveFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFolder() argument 181 bool MoveFile(const Pathname &old_path, const Pathname &new_path) { in MoveFile() argument 185 bool CopyFile(const Pathname &old_path, const Pathname &new_path) { in CopyFile() argument
|
D | fileutils.cc | 157 const Pathname &new_path) { in DirectoryIterator() argument 161 new_dir.SetFolder(new_path.pathname()); in DirectoryIterator() 176 dest.SetFolder(new_path.pathname()); in DirectoryIterator()
|
/external/libchrome/base/files/ |
D | file_path.cc | 310 FilePath new_path(path_); in DirName() local 311 new_path.StripTrailingSeparatorsInternal(); in DirName() 317 StringType::size_type letter = FindDriveLetter(new_path.path_); in DirName() 320 new_path.path_.find_last_of(kSeparators, StringType::npos, in DirName() 324 new_path.path_.resize(letter + 1); in DirName() 327 new_path.path_.resize(letter + 2); in DirName() 329 IsSeparator(new_path.path_[letter + 1])) { in DirName() 332 new_path.path_.resize(letter + 3); in DirName() 335 new_path.path_.resize(last_separator); in DirName() 338 new_path.StripTrailingSeparatorsInternal(); in DirName() [all …]
|
D | file_util.cc | 250 FilePath new_path; in GetUniquePathNumber() local 252 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count)); in GetUniquePathNumber() 253 if (!PathExists(new_path) && in GetUniquePathNumber() 254 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) { in GetUniquePathNumber()
|
/external/ltp/testcases/kernel/fs/mongo/ |
D | mongo_slinks.c | 23 char *new_path; in main() local 41 new_path = strtok(NULL, "\t\n "); in main() 43 if (!old_path || !new_path) /* empty lines at the end of file */ in main() 47 if (symlink(old_path, new_path) != 0) { in main() 52 if (lstat(new_path, &statbuf) == -1) { in main() 59 new_path); in main() 69 num = readlink(new_path, buffer, size); in main()
|
/external/syslinux/core/fs/ |
D | fs.c | 259 char *new_path; in searchdir() local 276 new_path = malloc(new_len); in searchdir() 277 if (!new_path) in searchdir() 280 copied = this_fs->fs_ops->readlink(inode, new_path); in searchdir() 283 new_path[copied] = '\0'; in searchdir() 284 dprintf("searchdir: Symlink: %s\n", new_path); in searchdir() 287 new_path[copied] = '/'; in searchdir() 288 strcpy(new_path + copied + 1, next_inode_name); in searchdir() 289 dprintf("searchdir: New path: %s\n", new_path); in searchdir() 293 path = next_inode_name = new_path; in searchdir() [all …]
|
/external/ltp/testcases/kernel/fs/iso9660/ |
D | isofs.sh | 61 local new_path="$cur_path/subdir_$i" 63 mkdir -p "$new_path" 65 dd if=/dev/urandom of="$new_path/file" bs=1024 count=100 &> /dev/null 67 gen_fs_tree "$new_path" $((cur_depth + 1))
|
/external/curl/lib/ |
D | cookie.c | 226 char *new_path = strdup(cookie_path); in sanitize_cookie_path() local 227 if(!new_path) in sanitize_cookie_path() 231 len = strlen(new_path); in sanitize_cookie_path() 232 if(new_path[0] == '\"') { in sanitize_cookie_path() 233 memmove((void *)new_path, (const void *)(new_path + 1), len); in sanitize_cookie_path() 236 if(len && (new_path[len - 1] == '\"')) { in sanitize_cookie_path() 237 new_path[len - 1] = 0x0; in sanitize_cookie_path() 242 if(new_path[0] != '/') { in sanitize_cookie_path() 244 free(new_path); in sanitize_cookie_path() 245 new_path = strdup("/"); in sanitize_cookie_path() [all …]
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/ |
D | current_path.pass.cpp | 55 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/compiler-rt/test/asan/Unit/ |
D | lit.site.cfg.in | 8 def push_ld_library_path(config, new_path): 10 (new_path, config.environment.get('LD_LIBRARY_PATH', '')))
|
/external/skia/infra/bots/ |
D | win_toolchain_utils.py | 56 def resolve(win_toolchain_json, new_path): argument 58 _replace_in_file(win_toolchain_json, PLACEHOLDER, new_path)
|
/external/ltp/testcases/kernel/controllers/cgroup_fj/ |
D | cgroup_fj_stress.sh | 119 local new_path="$cur_path/$i" 120 attach_task "$new_path" $((cur_depth+1)) "$ppid"
|
/external/ipsec-tools/src/racoon/ |
D | remoteconf.c | 638 vchar_t *new_path; local 650 if ((new_path = vmalloc(len)) == NULL) { 656 new_path->v[0] = '\0'; 657 (void)strlcat(new_path->v, script_dir, len); 658 (void)strlcat(new_path->v, "/", len); 659 (void)strlcat(new_path->v, path->v, len); 662 path = new_path;
|
/external/autotest/client/cros/audio/ |
D | audio_test_data.py | 86 new_path = (original_path_without_ext + '_' + 114 path_dst=new_path, 123 new_test_data = AudioTestData(path=new_path,
|
/external/google-breakpad/src/client/linux/minidump_writer/ |
D | linux_dumper.cc | 453 char new_path[NAME_MAX]; in HandleDeletedFileInMapping() local 456 if (!SafeReadLink(exe_link, new_path)) in HandleDeletedFileInMapping() 458 if (my_strcmp(path, new_path) != 0) in HandleDeletedFileInMapping() 465 sys_stat(new_path, &new_path_stat) == 0 && in HandleDeletedFileInMapping()
|
/external/opencv/otherlibs/highgui/ |
D | loadsave.cpp | 129 char* new_path = new char[new_size]; 133 memcpy( new_path, m_path, m_len ); 137 m_path = new_path;
|
/external/v8/src/base/debug/ |
D | stack_trace_win.cc | 84 std::wstring new_path(std::wstring(symbols_path.get()) + L";" + in InitializeSymbols() local 86 if (!SymSetSearchPathW(GetCurrentProcess(), new_path.c_str())) { in InitializeSymbols()
|
/external/autotest/client/cros/cellular/ |
D | cell_tools.py | 251 new_path = _WaitForModemToReturn( 254 if not _IsCdmaModemConfiguredCorrectly(manager, new_path): 256 return new_path
|
/external/selinux/python/sepolicy/sepolicy/ |
D | manpage.py | 187 self.new_path = self.old_path + self.os_version + "/" 202 if not os.path.isdir(self.new_path): 203 os.mkdir(self.new_path) 208 … convert_manpage_to_html((self.new_path + d.split("_selinux")[0] + ".html"), self.old_path + d) 213 … convert_manpage_to_html((self.new_path + r.split("_selinux")[0] + ".html"), self.old_path + r) 262 html = self.new_path + self.os_version + ".html"
|
/external/compiler-rt/test/asan/ |
D | lit.cfg | 17 def push_dynamic_library_lookup_path(config, new_path): 26 (new_path, config.environment.get(dynamic_library_lookup_var, '')))
|