Searched refs:to_path (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/tools/git/
H A Dmove_source_file.py43 def MakeDestinationPath(from_path, to_path):
53 if os.path.isdir(to_path):
54 to_path = os.path.join(to_path, os.path.basename(from_path))
56 dest_extension = os.path.splitext(to_path)[1]
60 return to_path
63 def MoveFile(from_path, to_path):
64 """Performs a git mv command to move a file from |from_path| to |to_path|.
66 if not os.system('git mv %s %s' % (from_path, to_path)) == 0:
70 def UpdatePostMove(from_path, to_path)
[all...]
/external/chromium_org/net/disk_cache/
H A Dcache_util_posix.cc14 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { argument
22 if (!base::CreateDirectory(to_path)) {
30 base::FilePath destination = to_path.Append(name.BaseName());
38 return base::Move(from_path, to_path);
H A Dcache_util_win.cc16 bool MoveCache(const base::FilePath& from_path, const base::FilePath& to_path) { argument
19 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) {
H A Dcache_util.h25 const base::FilePath& to_path);
/external/libmtp/examples/
H A Dgetfile.c42 getfile_function(char * from_path,char * to_path) argument
46 printf("Getting %s to %s\n",from_path,to_path);
47 if (LIBMTP_Get_File_To_File(device, id, to_path, progress, NULL) != 0 ) {
H A Dsendfile.c49 int sendfile_function(char * from_path, char *to_path) argument
51 printf("Sending %s to %s\n",from_path,to_path);
67 parent_id = parse_path (to_path,files,folders);
H A Dsendtr.c164 int sendtrack_function(char * from_path, char * to_path, char *partist, char *palbumartist, char *ptitle, char *pgenre, char *palbum, char *pcomposer, uint16_t tracknum, uint16_t length, uint16_t year, uint32_t storageid) argument
176 printf("Sending track %s to %s\n",from_path,to_path);
181 parent = dirname(strdup(to_path));
182 filename = basename(strdup(to_path));
/external/chromium_org/chromeos/dbus/
H A Dfake_image_burner_client.cc22 const std::string& to_path,
21 BurnImage(const std::string& from_path, const std::string& to_path, const ErrorCallback& error_callback) argument
H A Dfake_image_burner_client.h23 const std::string& to_path,
H A Dimage_burner_client.h37 // Burns the image |from_path| to the disk |to_path|.
39 const std::string& to_path,
H A Dimage_burner_client.cc28 const std::string& to_path,
34 writer.AppendString(to_path);
/external/chromium_org/base/files/
H A Dfile_util.h86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
88 // Renames file |from_path| to |to_path|. Both paths must be on the same
95 const FilePath& to_path,
103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
108 // If there are files existing under to_path, always overwrite. Returns true
116 const FilePath& to_path,
420 const FilePath& to_path);
425 const FilePath& to_path);
428 // Copy from_path to to_path recursively and then delete from_path recursively.
433 const FilePath& to_path);
[all...]
H A Dfile_util_win.cc116 const FilePath& to_path,
119 // Try a simple move first. It will only succeed when |to_path| doesn't
121 if (::MoveFile(from_path.value().c_str(), to_path.value().c_str()))
124 // succeed when |to_path| does exist. When writing to a network share, we may
127 if (::ReplaceFile(to_path.value().c_str(), from_path.value().c_str(), NULL,
136 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path, argument
148 to_path.value().length() >= MAX_PATH) {
153 FilePath real_to_path = to_path;
189 if (recursive && DirectoryExists(to_path)) {
197 // the suffix after from_path to to_path t
115 ReplaceFile(const FilePath& from_path, const FilePath& to_path, File::Error* error) argument
731 MoveUnsafe(const FilePath& from_path, const FilePath& to_path) argument
765 CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) argument
794 CopyAndDeleteDirectory(const FilePath& from_path, const FilePath& to_path) argument
[all...]
H A Dfile_util.cc44 bool Move(const FilePath& from_path, const FilePath& to_path) { argument
45 if (from_path.ReferencesParent() || to_path.ReferencesParent())
47 return internal::MoveUnsafe(from_path, to_path);
50 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { argument
51 if (from_path.ReferencesParent() || to_path.ReferencesParent())
53 return internal::CopyFileUnsafe(from_path, to_path);
H A Dfile_util_posix.cc239 const FilePath& to_path,
242 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
250 const FilePath& to_path,
256 DCHECK(to_path.value().find('*') == std::string::npos);
264 FilePath real_to_path = to_path;
288 // We have to mimic windows behavior here. |to_path| may not exist yet,
289 // start the loop with |to_path|.
299 if (recursive && stat(to_path.value().c_str(), &to_path_stat) == 0 &&
314 // the suffix after from_path to to_path to create the target_path.
315 FilePath target_path(to_path);
238 ReplaceFile(const FilePath& from_path, const FilePath& to_path, File::Error* error) argument
249 CopyDirectory(const FilePath& from_path, const FilePath& to_path, bool recursive) argument
836 MoveUnsafe(const FilePath& from_path, const FilePath& to_path) argument
863 CopyFileUnsafe(const FilePath& from_path, const FilePath& to_path) argument
[all...]
/external/chromium_org/storage/browser/fileapi/
H A Dsandbox_prioritized_origin_database.cc180 base::FilePath to_path = file_system_directory_.Append(kPrimaryDirectory); local
182 if (base::PathExists(to_path))
183 base::DeleteFile(to_path, true /* recursive */);
184 base::Move(from_path, to_path);
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/
H A Dtest_utils.cc32 const std::string& to_path,
35 base::Bind(burn_progress_update_handler_, to_path, 0, 100));
37 base::Bind(burn_progress_update_handler_, to_path, 50, 100));
39 base::Bind(burn_progress_update_handler_, to_path, 100, 100));
41 base::Bind(burn_finished_handler_, to_path, true, ""));
/external/chromium_org/content/browser/renderer_host/pepper/
H A Dpepper_flash_file_message_filter.h60 const ppapi::PepperFilePath& to_path);
H A Dpepper_flash_file_message_filter.cc149 const ppapi::PepperFilePath& to_path) {
153 to_path, base::Bind(&CanCreateReadWrite));
146 OnRenameFile( ppapi::host::HostMessageContext* context, const ppapi::PepperFilePath& from_path, const ppapi::PepperFilePath& to_path) argument
/external/chromium_org/chrome/browser/chromeos/login/users/wallpaper/
H A Dwallpaper_manager.cc121 base::FilePath to_path = base_path.Append(user_id_hash); local
124 return base::Move(from_path, to_path);

Completed in 2618 milliseconds