Home
last modified time | relevance | path

Searched refs:from_path (Results 1 – 14 of 14) sorted by relevance

/external/libmtp/examples/
Dsendfile.c47 int sendfile_function(char * from_path, char *to_path) in sendfile_function() argument
49 printf("Sending %s to %s\n",from_path,to_path); in sendfile_function()
57 if ( stat(from_path, &sb) == -1 ) { in sendfile_function()
58 fprintf(stderr, "%s: ", from_path); in sendfile_function()
64 filename = basename(from_path); in sendfile_function()
79 ret = LIBMTP_Send_File_From_File(device, from_path, genfile, progress, NULL); in sendfile_function()
Dgetfile.c40 getfile_function(char * from_path,char * to_path) in getfile_function() argument
42 int id = parse_path (from_path,files,folders); in getfile_function()
44 printf("Getting %s to %s\n",from_path,to_path); in getfile_function()
Dsendtr.c185 int sendtrack_function(char * from_path, char * to_path, char *partist, char *palbumartist, char *p… in sendtrack_function() argument
198 printf("Sending track %s to %s\n", from_path, to_path); in sendtrack_function()
211 if (stat(from_path, &sb) == -1) { in sendtrack_function()
212 fprintf(stderr, "%s: ", from_path); in sendtrack_function()
226 trackmeta->filetype = find_filetype (from_path); in sendtrack_function()
368 ret = LIBMTP_Send_Track_From_File(device, from_path, trackmeta, progress, NULL); in sendtrack_function()
/external/libchrome/base/files/
Dfile_util_posix.cc180 bool DoCopyDirectory(const FilePath& from_path, in DoCopyDirectory() argument
189 DCHECK(from_path.value().find('*') == std::string::npos); in DoCopyDirectory()
191 if (from_path.value().size() >= PATH_MAX) { in DoCopyDirectory()
204 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in DoCopyDirectory()
213 FileEnumerator traversal(from_path, recursive, traverse_type); in DoCopyDirectory()
218 FilePath current = from_path; in DoCopyDirectory()
219 if (stat(from_path.value().c_str(), &from_stat) < 0) { in DoCopyDirectory()
221 << from_path.value(); in DoCopyDirectory()
224 FilePath from_path_base = from_path; in DoCopyDirectory()
228 from_path_base = from_path.DirName(); in DoCopyDirectory()
[all …]
Dfile_util.h86 BASE_EXPORT bool Move(const FilePath& from_path, const FilePath& to_path);
94 BASE_EXPORT bool ReplaceFile(const FilePath& from_path,
118 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
129 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
135 BASE_EXPORT bool CopyDirectoryExcl(const FilePath& from_path,
483 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
491 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
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/toolchain-utils/automation/common/
Dcommand.py188 def RemoteCopyFrom(from_machine, from_path, to_path, username=None): argument
189 from_path = os.path.expanduser(from_path) + '/'
199 (login, from_path), to_path))
/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/linux/tests/
Dcrash_generator.cc257 char from_path[PATH_MAX], to_path[PATH_MAX]; in CopyProcFiles() local
259 int num_chars = snprintf(from_path, PATH_MAX, "/proc/%d/%s", in CopyProcFiles()
269 if (!CopyFile(from_path, to_path)) in CopyProcFiles()
/external/google-breakpad/src/common/tests/
Dfile_utils.cc44 bool CopyFile(const char* from_path, const char* to_path) { in CopyFile() argument
45 int infile = HANDLE_EINTR(open(from_path, O_RDONLY)); in CopyFile()
Dfile_utils.h39 bool CopyFile(const char* from_path, const char* to_path);
/external/autotest/server/cros/ap_configurators/
Dpyauto_utils.py63 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)
/external/tensorflow/tensorflow/tools/docs/
Dgenerate_lib.py151 from_path = os.path.join(site_api_path, dup.replace('.', '/'))
154 os.path.join('/', from_path),
/external/python/oauth2client/oauth2client/contrib/
Dappengine.py378 entity_key = db.Key.from_path(self._model.kind(), self._key_name)