Searched refs:from_path (Results 1 - 8 of 8) sorted by relevance

/external/chromium/net/disk_cache/
H A Dcache_util.h18 bool MoveCache(const FilePath& from_path, const FilePath& to_path);
H A Dcache_util_posix.cc13 bool MoveCache(const FilePath& from_path, const FilePath& to_path) { argument
15 return file_util::Move(from_path, to_path);
H A Dcache_util_win.cc42 bool MoveCache(const FilePath& from_path, const FilePath& to_path) { argument
45 if (!MoveFileEx(from_path.value().c_str(), to_path.value().c_str(), 0)) {
/external/chromium/base/
H A Dfile_util_linux.cc32 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { argument
33 int infile = open(from_path.value().c_str(), O_RDONLY);
H A Dfile_util_posix.cc173 bool Move(const FilePath& from_path, const FilePath& to_path) { argument
174 // Windows compatibility: if to_path exists, from_path and to_path
179 if (CallStat(from_path.value().c_str(), &from_file_info) == 0) {
187 if (rename(from_path.value().c_str(), to_path.value().c_str()) == 0)
190 if (!CopyDirectory(from_path, to_path, true))
193 Delete(from_path, true);
197 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { argument
198 return (rename(from_path.value().c_str(), to_path.value().c_str()) == 0);
201 bool CopyDirectory(const FilePath& from_path, argument
209 DCHECK(from_path
[all...]
H A Dfile_util_win.cc110 bool Move(const FilePath& from_path, const FilePath& to_path) { argument
113 if (from_path.value().length() >= MAX_PATH ||
117 if (MoveFileEx(from_path.value().c_str(), to_path.value().c_str(),
120 if (DirectoryExists(from_path)) {
123 // from_path and to_path are indeed in different volumes.
124 return CopyAndDeleteDirectory(from_path, to_path);
129 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) { argument
140 from_path.value().c_str(), NULL,
144 bool CopyFile(const FilePath& from_path, const FilePath& to_path) { argument
147 if (from_path
155 ShellCopy(const FilePath& from_path, const FilePath& to_path, bool recursive) argument
186 CopyDirectory(const FilePath& from_path, const FilePath& to_path, bool recursive) argument
209 CopyAndDeleteDirectory(const FilePath& from_path, const FilePath& to_path) argument
[all...]
H A Dfile_util.h144 bool Move(const FilePath& from_path, const FilePath& to_path);
146 // Renames file |from_path| to |to_path|. Both paths must be on the same
151 bool ReplaceFile(const FilePath& from_path, const FilePath& to_path);
154 bool CopyFile(const FilePath& from_path, const FilePath& to_path);
163 bool CopyDirectory(const FilePath& from_path, const FilePath& to_path,
166 bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path,
257 // Copy from_path to to_path recursively and then delete from_path recursively.
261 bool CopyAndDeleteDirectory(const FilePath& from_path,
H A Dfile_util.cc336 bool CopyDirectory(const std::wstring& from_path, const std::wstring& to_path, argument
338 return CopyDirectory(FilePath::FromWStringHack(from_path),

Completed in 47 milliseconds