/external/chromium_org/content/browser/download/ |
H A D | base_file_posix.cc | 13 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 D | base_file_win.cc | 296 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 D | net_util_posix.cc | 46 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 D | path_util.cc | 32 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 D | volume_manager.cc | 175 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 D | id_util.cc | 49 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 D | net_util_posix.cc | 54 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 D | download_history.cc | 85 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 D | base_file.cc | 87 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 D | download_file_manager.cc | 350 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 D | exec_cmd.c | 85 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 D | extension_management_browsertest.cc | 96 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 D | cache_dumper.cc | 75 std::string new_path = local 77 entry_path_ = FilePath(ASCIIToWide(new_path));
|
/external/chromium_org/chrome/browser/profiles/ |
H A D | profile_manager_browsertest.cc | 142 base::FilePath new_path = profile_manager->GenerateNextProfileDirectoryPath(); local 143 profile_manager->CreateProfileAsync(new_path,
|
/external/chromium_org/net/tools/dump_cache/ |
H A D | cache_dumper.cc | 84 std::string new_path = local 86 entry_path_ = base::FilePath::FromUTF8Unsafe(new_path);
|
/external/chromium_org/net/url_request/ |
H A D | url_request_file_job.cc | 127 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 D | finder_kernel.cc | 128 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 D | file_system_url_request_job.cc | 229 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 D | url_request_file_job.cc | 234 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 D | fileutils.cc | 169 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 D | unixfilesystem.cc | 221 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 D | win32filesystem.cc | 248 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 D | file_util.cc | 239 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 D | file_cache.cc | 502 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 D | resource_metadata.cc | 444 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();
|