Searched defs:to_path (Results 1 - 12 of 12) sorted by relevance

/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)) {
/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
/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/base/files/
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_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_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/content/browser/renderer_host/pepper/
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 1119 milliseconds