Home
last modified time | relevance | path

Searched refs:to_path (Results 1 – 13 of 13) sorted by relevance

/external/libchrome/base/files/
Dfile_util.h86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
95 const FilePath& to_path,
103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
116 const FilePath& to_path,
427 const FilePath& to_path);
435 const FilePath& to_path);
Dfile_util_posix.cc240 const FilePath& to_path, in ReplaceFile() argument
243 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile()
251 const FilePath& to_path, in CopyDirectory() argument
257 DCHECK(to_path.value().find('*') == std::string::npos); in CopyDirectory()
265 FilePath real_to_path = to_path; in CopyDirectory()
300 if (recursive && stat(to_path.value().c_str(), &to_path_stat) == 0 && in CopyDirectory()
316 FilePath target_path(to_path); in CopyDirectory()
860 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { in CopyFile() argument
875 File outfile(to_path, File::FLAG_WRITE | File::FLAG_CREATE_ALWAYS); in CopyFile()
912 bool MoveUnsafe(const FilePath& from_path, const FilePath& to_path) { in MoveUnsafe() argument
[all …]
Dfile_util_mac.mm17 bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
19 if (from_path.ReferencesParent() || to_path.ReferencesParent())
22 to_path.value().c_str(), NULL, COPYFILE_DATA) == 0);
Dfile_util.cc46 bool Move(const FilePath& from_path, const FilePath& to_path) { in Move() argument
47 if (from_path.ReferencesParent() || to_path.ReferencesParent()) in Move()
49 return internal::MoveUnsafe(from_path, to_path); in Move()
/external/libmtp/examples/
Dgetfile.c42 getfile_function(char * from_path,char * to_path) in getfile_function() argument
46 printf("Getting %s to %s\n",from_path,to_path); in getfile_function()
47 if (LIBMTP_Get_File_To_File(device, id, to_path, progress, NULL) != 0 ) { in getfile_function()
Dsendfile.c49 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()
67 parent_id = parse_path (to_path,files,folders); in sendfile_function()
Dsendtr.c164 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()
181 parent = dirname(strdup(to_path)); in sendtrack_function()
182 filename = basename(strdup(to_path)); in sendtrack_function()
/external/google-breakpad/src/common/linux/tests/
Dcrash_generator.cc257 char from_path[PATH_MAX], to_path[PATH_MAX]; in CopyProcFiles() local
264 num_chars = snprintf(to_path, PATH_MAX, "%s/%s", in CopyProcFiles()
269 if (!CopyFile(from_path, to_path)) in CopyProcFiles()
/external/autotest/client/cros/faft/utils/
Dos_interface.py175 def copy_file(self, from_path, to_path): argument
177 cmd = 'cp -f %s %s' % (from_path, to_path)
180 def copy_dir(self, from_path, to_path): argument
182 cmd = 'cp -rf %s %s' % (from_path, to_path)
/external/google-breakpad/src/common/tests/
Dfile_utils.cc44 bool CopyFile(const char* from_path, const char* to_path) { in CopyFile() argument
51 int outfile = HANDLE_EINTR(creat(to_path, 0666)); in CopyFile()
Dfile_utils.h39 bool CopyFile(const char* from_path, const char* to_path);
/external/chromium-trace/catapult/third_party/pipeline/pipeline/
Dmodels.py260 barrier_index_path = barrier_index_key.to_path()
Dpipeline.py1784 *slot.key.to_path(), **dict(parent=pipeline._pipeline_key))
2384 barrier_index_path.extend(slot_key.to_path())
2385 barrier_index_path.extend(child_pipeline_key.to_path())