Home
last modified time | relevance | path

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

/external/libmtp/examples/
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()
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()
Dgetfile.c42 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()
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()
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/libchrome/base/files/
Dfile_util_posix.cc239 bool ReplaceFile(const FilePath& from_path, in ReplaceFile() argument
243 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0) in ReplaceFile()
250 bool CopyDirectory(const FilePath& from_path, in CopyDirectory() argument
258 DCHECK(from_path.value().find('*') == std::string::npos); in CopyDirectory()
260 if (from_path.value().size() >= PATH_MAX) { in CopyDirectory()
275 FilePath real_from_path = MakeAbsoluteFilePath(from_path); in CopyDirectory()
287 FileEnumerator traversal(from_path, recursive, traverse_type); in CopyDirectory()
292 FilePath current = from_path; in CopyDirectory()
293 if (stat(from_path.value().c_str(), &from_stat) < 0) { in CopyDirectory()
295 << from_path.value() << " errno = " << errno; in CopyDirectory()
[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,
103 BASE_EXPORT bool CopyFile(const FilePath& from_path, const FilePath& to_path);
115 BASE_EXPORT bool CopyDirectory(const FilePath& from_path,
426 BASE_EXPORT bool MoveUnsafe(const FilePath& from_path,
434 BASE_EXPORT bool CopyAndDeleteDirectory(const FilePath& from_path,
Dfile_util_mac.mm17 bool CopyFile(const FilePath& from_path, const FilePath& to_path) {
19 if (from_path.ReferencesParent() || to_path.ReferencesParent())
21 return (copyfile(from_path.value().c_str(),
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/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/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
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/chromium-trace/catapult/third_party/pipeline/pipeline/
Dpipeline.py189 slot_key = db.Key.from_path(_SlotRecord.kind(), uuid.uuid4().hex)
476 self._pipeline_key = db.Key.from_path(
572 pipeline_key = db.Key.from_path(_PipelineRecord.kind(), pipeline_id)
659 pipeline_key = db.Key.from_path(_PipelineRecord.kind(), idempotence_key)
685 pipeline_key = db.Key.from_path(_PipelineRecord.kind(), idempotence_key)
792 status_key = db.Key.from_path(_StatusRecord.kind(), self.pipeline_id)
793 root_pipeline_key = db.Key.from_path(
1783 slot.key = db.Key.from_path(
2285 child_pipeline_key = db.Key.from_path(
2387 barrier_index_key = db.Key.from_path(*barrier_index_path)
[all …]
Dmodels.py271 return db.Key.from_path(*barrier_record_path)
/external/chromium-trace/catapult/third_party/gsutil/third_party/boto/boto/sdb/db/
Dkey.py25 def from_path(cls, *args, **kwds): member in Key
/external/chromium-trace/catapult/third_party/mapreduce/mapreduce/
Dnamespace_range.py161 return db.Key.from_path(metadata.Namespace.KIND_NAME,
165 return db.Key.from_path(metadata.Namespace.KIND_NAME,
Dmodel.py623 return db.Key.from_path(cls.kind(), str(mapreduce_id))
1076 return db.Key.from_path(cls.kind(), shard_id)
1197 return db.Key.from_path(cls.kind(), "%s:%s" % (mapreduce_id, cls._KEY_NAME))
Dshuffler.py87 return db.Key.from_path(cls.kind(), job_id)
/external/chromium-trace/catapult/third_party/gsutil/third_party/oauth2client/oauth2client/
Dappengine.py449 entity_key = db.Key.from_path(self._model.kind(), self._key_name)
/external/chromium-trace/catapult/third_party/webapp2/docs/tutorials/gettingstarted/
Dusingdatastore.rst73 return db.Key.from_path('Guestbook', guestbook_name or 'default_guestbook')