/external/chromium_org/tools/git/ |
D | move_source_file.py | 43 def MakeDestinationPath(from_path, to_path): argument 49 if not IsHandledFile(from_path): 52 from_path) 54 to_path = os.path.join(to_path, os.path.basename(from_path)) 63 def MoveFile(from_path, to_path): argument 66 if not os.system('git mv %s %s' % (from_path, to_path)) == 0: 70 def UpdatePostMove(from_path, to_path): argument 77 from_path = from_path.replace('\\', '/') 80 if os.path.splitext(from_path)[1] in ['.h', '.hh']: 81 UpdateIncludeGuard(from_path, to_path) [all …]
|
/external/chromium/chrome/browser/chromeos/cros/ |
D | burn_library.cc | 24 virtual bool DoBurn(const FilePath& from_path, const FilePath& to_path); 26 bool BurnImage(const FilePath& from_path, const FilePath& to_path); 50 void BurnImage(const FilePath& from_path, const FilePath& to_path); 84 bool BurnLibraryImpl::DoBurn(const FilePath& from_path, in DoBurn() argument 88 task->BurnImage(from_path, to_path); in DoBurn() 91 from_path, to_path)); in DoBurn() 95 bool BurnLibraryImpl::BurnImage(const FilePath& from_path, in BurnImage() argument 107 StartBurn(from_path.value().c_str(), to_path.value().c_str(), in BurnImage() 150 void BurnLibraryTaskProxy::BurnImage(const FilePath& from_path, in BurnImage() argument 152 library_->BurnImage(from_path, to_path); in BurnImage() [all …]
|
/external/libmtp/examples/ |
D | sendfile.c | 49 int sendfile_function(char * from_path, char *to_path) in sendfile_function() argument 51 printf("Sending %s to %s\n",from_path,to_path); in sendfile_function() 59 if ( stat(from_path, &sb) == -1 ) { in sendfile_function() 60 fprintf(stderr, "%s: ", from_path); in sendfile_function() 66 filename = basename(from_path); in sendfile_function() 81 ret = LIBMTP_Send_File_From_File(device, from_path, genfile, progress, NULL); in sendfile_function()
|
D | getfile.c | 42 getfile_function(char * from_path,char * to_path) in getfile_function() argument 44 int id = parse_path (from_path,files,folders); in getfile_function() 46 printf("Getting %s to %s\n",from_path,to_path); in getfile_function()
|
D | sendtr.c | 164 int sendtrack_function(char * from_path, char * to_path, char *partist, char *palbumartist, char *p… in sendtrack_function() argument 176 printf("Sending track %s to %s\n",from_path,to_path); in sendtrack_function() 189 if ( stat(from_path, &sb) == -1 ) { in sendtrack_function() 190 fprintf(stderr, "%s: ", from_path); in sendtrack_function() 195 trackmeta->filetype = find_filetype (from_path); in sendtrack_function() 350 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL); in sendtrack_function()
|
/external/chromium_org/base/ |
D | file_util_win.cc | 37 bool ShellCopy(const FilePath& from_path, in ShellCopy() argument 41 FilePath stripped_from = from_path.StripTrailingSeparators(); in ShellCopy() 144 bool ReplaceFile(const FilePath& from_path, in ReplaceFile() argument 150 if (::MoveFile(from_path.value().c_str(), to_path.value().c_str())) in ReplaceFile() 156 if (::ReplaceFile(to_path.value().c_str(), from_path.value().c_str(), NULL, in ReplaceFile() 165 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path, in CopyDirectory() argument 170 return ShellCopy(from_path, to_path, true); in CopyDirectory() 173 DCHECK(DirectoryExists(from_path)); in CopyDirectory() 183 ShellCopy(from_path, to_path, false); in CopyDirectory() 186 FilePath directory = from_path.Append(L"*.*"); in CopyDirectory() [all …]
|
D | file_util_posix.cc | 245 bool ReplaceFile(const FilePath& from_path, in ReplaceFile() argument 249 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile() 256 bool CopyDirectory(const FilePath& from_path, in CopyDirectory() argument 265 DCHECK(from_path.value().find('*') == std::string::npos); in CopyDirectory() 268 if (strlcpy(top_dir, from_path.value().c_str(), in CopyDirectory() 284 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in CopyDirectory() 296 FileEnumerator traversal(from_path, recursive, traverse_type); in CopyDirectory() 301 FilePath current = from_path; in CopyDirectory() 302 if (stat(from_path.value().c_str(), &from_stat) < 0) { in CopyDirectory() 304 << from_path.value() << " errno = " << errno; in CopyDirectory() [all …]
|
D | file_util.h | 86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path); 94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path, 100 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path); 109 BASE_EXPORT bool CopyDirectory(const FilePath& from_path, 445 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path, 450 BASE_EXPORT bool CopyFileUnsafe(const FilePath& from_path, 458 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
|
D | file_util.cc | 43 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument 44 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in Move() 46 return internal::MoveUnsafe(from_path, to_path); in Move() 49 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument 50 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in CopyFile() 52 return internal::CopyFileUnsafe(from_path, to_path); in CopyFile()
|
D | file_util_mac.mm | 19 bool CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) { 21 return (copyfile(from_path.value().c_str(),
|
/external/chromium_org/net/disk_cache/ |
D | cache_util_posix.cc | 14 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 26 base::FileEnumerator iter(from_path, false /* not recursive */, in MoveCache() 38 return base::Move(from_path, to_path); in MoveCache()
|
D | cache_util_win.cc | 16 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { in MoveCache() argument 19 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { in MoveCache()
|
D | cache_util.h | 24 NET_EXPORT_PRIVATE bool MoveCache(const base::FilePath& from_path,
|
/external/chromium/base/ |
D | file_util_win.cc | 178 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument 183 if (from_path.value().length() >= MAX_PATH || in Move() 187 if (MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), in Move() 196 if (DirectoryExists(from_path)) { in Move() 200 ret = CopyAndDeleteDirectory(from_path, to_path); in Move() 212 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { in ReplaceFile() argument 229 from_path.value().c_str(), NULL, in ReplaceFile() 233 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument 238 if (from_path.value().length() >= MAX_PATH || in CopyFile() 242 return (::CopyFile(from_path.value().c_str(), to_path.value().c_str(), in CopyFile() [all …]
|
D | file_util_posix.cc | 186 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument 193 if (CallStat(from_path.value().c_str(), &from_file_info) == 0) { in Move() 201 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in Move() 204 if (!CopyDirectory(from_path, to_path, true)) in Move() 207 Delete(from_path, true); in Move() 211 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { in ReplaceFile() argument 213 return (rename(from_path.value().c_str(), to_path.value().c_str()) == 0); in ReplaceFile() 216 bool CopyDirectory(const FilePath& from_path, in CopyDirectory() argument 225 DCHECK(from_path.value().find('*') == std::string::npos); in CopyDirectory() 228 if (base::strlcpy(top_dir, from_path.value().c_str(), in CopyDirectory() [all …]
|
D | file_util_mac.mm | 29 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { 31 return (copyfile(from_path.value().c_str(),
|
D | file_util.h | 119 BASE_API bool Move(const FilePath& from_path, const FilePath& to_path); 126 BASE_API bool ReplaceFile(const FilePath& from_path, const FilePath& to_path); 129 BASE_API bool CopyFile(const FilePath& from_path, const FilePath& to_path); 138 BASE_API bool CopyDirectory(const FilePath& from_path, const FilePath& to_path, 247 BASE_API bool CopyAndDeleteDirectory(const FilePath& from_path,
|
/external/chromium/net/disk_cache/ |
D | cache_util_posix.cc | 13 bool MoveCache(const FilePath& from_path, const FilePath& to_path) { in MoveCache() argument 26 from_path, in MoveCache() 40 return file_util::Move(from_path, to_path); in MoveCache()
|
D | cache_util_win.cc | 44 bool MoveCache(const FilePath& from_path, const FilePath& to_path) { in MoveCache() argument 47 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) { in MoveCache()
|
D | cache_util.h | 21 bool MoveCache(const FilePath& from_path, const FilePath& to_path);
|
/external/chromium_org/chrome/common/extensions/docs/server2/ |
D | patch_servlet_test.py | 148 def is_redirect(from_host, from_path, to_url): argument 149 response = PatchServlet(Request.ForTest(from_path, host=from_host), 154 from_host, from_path)) 157 from_host, from_path, redirect_url, to_url)) 159 from_host, from_path, redirect_url))
|
/external/chromium_org/chromeos/dbus/ |
D | image_burner_client.cc | 27 virtual void BurnImage(const std::string& from_path, in BurnImage() argument 33 writer.AppendString(from_path); in BurnImage()
|
D | fake_image_burner_client.cc | 21 void FakeImageBurnerClient::BurnImage(const std::string& from_path, in BurnImage() argument
|
D | fake_image_burner_client.h | 22 virtual void BurnImage(const std::string& from_path,
|
/external/chromium_org/chrome/test/pyautolib/ |
D | pyauto_utils.py | 63 from_path = os.path.join(self._backup_dir, self._backup_basename) 64 logging.info('Reinstating backup from %s to %s' % (from_path, self._path)) 65 shutil.move(from_path, self._path)
|