Searched defs:new_path (Results 1 - 25 of 48) sorted by relevance

12

/external/chromium_org/content/browser/download/
H A Dbase_file_posix.cc13 const base::FilePath& new_path) {
15 // to |new_path|. Here, we try to fix up the destination file with appropriate
20 if (!base::PathExists(new_path)) {
21 int write_error = file_util::WriteFile(new_path, "", 0);
25 int stat_error = stat(new_path.value().c_str(), &st);
32 if (!base::Move(full_path_, new_path))
37 int chmod_error = chmod(new_path.value().c_str(), st.st_mode);
12 MoveFileAndAdjustPermissions( const base::FilePath& new_path) argument
H A Dbase_file_win.cc296 const base::FilePath& new_path) {
301 base::FilePath::StringType target = new_path.value();
295 MoveFileAndAdjustPermissions( const base::FilePath& new_path) argument
/external/chromium/net/base/
H A Dnet_util_posix.cc46 std::string new_path; local
48 new_path = old_path;
49 ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/");
50 old_path.swap(new_path);
51 } while (new_path != old_path);
/external/chromium_org/chrome/browser/chromeos/file_manager/
H A Dpath_util.cc32 base::FilePath* new_path) {
35 *new_path = drive::util::ConvertToMyDriveNamespace(old_path);
45 *new_path = new_base.Append(relative);
46 return old_path != *new_path;
30 MigratePathFromOldFormat(Profile* profile, const base::FilePath& old_path, base::FilePath* new_path) argument
H A Dvolume_manager.cc175 base::FilePath new_path; local
178 old_path, &new_path)) {
179 profile_->GetPrefs()->SetFilePath(kPathPreference[i], new_path);
/external/chromium_org/extensions/common/
H A Did_util.cc49 base::FilePath new_path = MaybeNormalizePath(path); local
51 std::string(reinterpret_cast<const char*>(new_path.value().data()),
52 new_path.value().size() * sizeof(base::FilePath::CharType));
/external/chromium_org/net/base/
H A Dnet_util_posix.cc54 std::string new_path; local
56 new_path = old_path;
57 ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/");
58 old_path.swap(new_path);
59 } while (new_path != old_path);
/external/chromium/chrome/browser/download/
H A Ddownload_history.cc85 const FilePath& new_path) {
93 hs->UpdateDownloadPath(new_path, download_item->db_handle());
84 UpdateDownloadPath(DownloadItem* download_item, const FilePath& new_path) argument
H A Dbase_file.cc87 bool BaseFile::Rename(const FilePath& new_path) { argument
96 if (new_path == full_path_) {
106 file_util::CreateDirectory(new_path.DirName());
112 if (!file_util::RenameFileAndResetSecurityDescriptor(full_path_, new_path))
117 // 600 to |new_path|. Here, we try to fix up the destination file with
122 if (!file_util::PathExists(new_path))
123 file_util::WriteFile(new_path, "", 0);
124 bool stat_succeeded = (stat(new_path.value().c_str(), &st) == 0);
128 if (!file_util::Move(full_path_, new_path))
132 chmod(new_path
[all...]
H A Ddownload_file_manager.cc350 FilePath new_path = full_path; local
359 uniquifier = download_util::GetUniquePathNumber(new_path);
361 download_util::AppendNumberToPath(&new_path, uniquifier);
366 if (!download->Rename(new_path)) {
383 new_path, uniquifier));
/external/linux-tools-perf/util/
H A Dexec_cmd.c85 struct strbuf new_path = STRBUF_INIT; local
87 add_path(&new_path, perf_exec_path());
88 add_path(&new_path, argv0_path);
91 strbuf_addstr(&new_path, old_path);
93 strbuf_addstr(&new_path, "/usr/local/bin:/usr/bin:/bin");
95 setenv("PATH", new_path.buf, 1);
97 strbuf_release(&new_path);
/external/chromium/chrome/browser/extensions/
H A Dextension_management_browsertest.cc96 FilePath new_path = service->extensions()->back()->path(); local
100 EXPECT_NE(old_path.value(), new_path.value());
/external/chromium/net/tools/dump_cache/
H A Dcache_dumper.cc75 std::string new_path = local
77 entry_path_ = FilePath(ASCIIToWide(new_path));
/external/chromium_org/chrome/browser/profiles/
H A Dprofile_manager_browsertest.cc142 base::FilePath new_path = profile_manager->GenerateNextProfileDirectoryPath(); local
143 profile_manager->CreateProfileAsync(new_path,
/external/chromium_org/net/tools/dump_cache/
H A Dcache_dumper.cc84 std::string new_path = local
86 entry_path_ = base::FilePath::FromUTF8Unsafe(new_path);
/external/chromium_org/net/url_request/
H A Durl_request_file_job.cc127 std::string new_path = request_->url().path(); local
128 new_path.push_back('/');
130 replacements.SetPathStr(new_path);
143 base::FilePath new_path = file_path_;
145 resolved = base::win::ResolveShortcut(new_path, &new_path, NULL);
151 *location = FilePathToFileURL(new_path);
/external/chromium_org/sandbox/win/tools/finder/
H A Dfinder_kernel.cc128 ATL::CString new_path; local
130 new_path = path + cur_path;
132 new_path = path + L"\\" + cur_path;
135 TestKernelObjectAccess(new_path, cur_type);
139 ParseKernelObjects(new_path);
/external/chromium_org/webkit/browser/fileapi/
H A Dfile_system_url_request_job.cc229 std::string new_path = request_->url().path(); local
230 new_path.push_back('/');
232 replacements.SetPathStr(new_path);
/external/chromium/net/url_request/
H A Durl_request_file_job.cc234 std::string new_path = request_->url().path(); local
235 new_path.push_back('/');
237 replacements.SetPathStr(new_path);
250 FilePath new_path = file_path_;
252 resolved = file_util::ResolveShortcut(&new_path);
258 *location = FilePathToFileURL(new_path);
/external/chromium/third_party/libjingle/source/talk/base/
H A Dfileutils.cc169 const Pathname &new_path) {
172 new_dir.SetFolder(new_path.pathname());
185 dest.SetFolder(new_path.pathname());
168 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument
H A Dunixfilesystem.cc221 const Pathname &new_path) {
227 << " to " << new_path.pathname();
228 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) {
231 if (!CopyFile(old_path, new_path))
240 const Pathname &new_path) {
246 << " to " << new_path.pathname();
247 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) {
250 if (!CopyFolder(old_path, new_path))
266 const Pathname &new_path) {
268 << " to " << new_path
220 MoveFile(const Pathname &old_path, const Pathname &new_path) argument
239 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument
265 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
[all...]
H A Dwin32filesystem.cc248 const Pathname &new_path) {
254 << " to " << new_path.pathname();
256 ToUtf16(new_path.pathname()).c_str()) != 0;
260 const Pathname &new_path) {
266 << " to " << new_path.pathname();
268 ToUtf16(new_path.pathname()).c_str()) == 0) {
273 if (!CopyFolder(old_path, new_path))
308 const Pathname &new_path) {
310 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0;
247 MoveFile(const Pathname &old_path, const Pathname &new_path) argument
259 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument
307 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
/external/chromium_org/base/
H A Dfile_util.cc239 FilePath new_path; local
241 new_path =
243 if (!PathExists(new_path) &&
244 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) {
/external/chromium_org/chrome/browser/chromeos/drive/
H A Dfile_cache.cc502 base::FilePath new_path = current.RemoveExtension(); local
503 if (!new_path.Extension().empty()) {
509 const std::string& id = GetIdFromPath(new_path);
510 new_path = GetCacheFilePath(util::CanonicalizeResourceId(id));
511 if (new_path != current && !base::Move(current, new_path))
H A Dresource_metadata.cc444 base::FilePath new_path = local
446 new_path =
447 new_path.InsertBeforeExtension(base::StringPrintf(" (%d)", ++modifier));
449 DCHECK_NE(new_base_name, new_path.AsUTF8Unsafe());
450 new_base_name = new_path.AsUTF8Unsafe();

Completed in 1697 milliseconds

12