/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 = base::WriteFile(new_path, "", 0); 25 int stat_error = stat(new_path.value().c_str(), &st); 30 if (!base::Move(full_path_, new_path)) 35 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_unittest.cc | 291 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 292 EXPECT_FALSE(base::PathExists(new_path)); 296 EXPECT_EQ(DOWNLOAD_INTERRUPT_REASON_NONE, base_file_->Rename(new_path)); 298 EXPECT_TRUE(base::PathExists(new_path)); 429 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 430 EXPECT_FALSE(base::PathExists(new_path)); 435 base_file_->Rename(new_path)); 437 EXPECT_TRUE(base::PathExists(new_path)); 448 base::FilePath new_path(temp_dir_.path().AppendASCII("NewFile")); 449 EXPECT_FALSE(base::PathExists(new_path)); [all...] |
H A D | download_file_impl.cc | 149 base::FilePath new_path(full_path); 153 base::GetUniquePathNumber(new_path, base::FilePath::StringType()); 155 new_path = new_path.InsertBeforeExtensionASCII( 159 DownloadInterruptReason reason = file_.Rename(new_path); 207 new_path.clear(); 212 base::Bind(callback, reason, new_path));
|
H A D | base_file.cc | 139 DownloadInterruptReason BaseFile::Rename(const base::FilePath& new_path) { argument 145 if (new_path == full_path_) 154 base::Bind(&FileRenamedNetLogCallback, &full_path_, &new_path)); 156 base::CreateDirectory(new_path.DirName()); 160 rename_result = MoveFileAndAdjustPermissions(new_path); 163 full_path_ = new_path;
|
/external/compiler-rt/test/asan/Unit/ |
H A D | lit.site.cfg.in | 9 def push_ld_library_path(config, new_path): 11 (new_path, config.environment['LD_LIBRARY_PATH']))
|
/external/chromium_org/chrome/browser/chromeos/file_manager/ |
H A D | path_util.h | 22 // Converts |old_path| to |new_path| and returns true, if the old path points 52 base::FilePath* new_path);
|
H A D | path_util.cc | 52 base::FilePath* new_path) { 96 *new_path = new_base.Append(relative); 97 return old_path != *new_path; 50 MigratePathFromOldFormat(Profile* profile, const base::FilePath& old_path, base::FilePath* new_path) argument
|
/external/linux-tools-perf/perf-3.12.0/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_org/third_party/webrtc/base/ |
H A D | fileutils.h | 154 // This moves a file from old_path to new_path, where "old_path" is a 160 const Pathname &new_path) = 0; 162 // This moves a directory from old_path to new_path, where "old_path" is a 167 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0; 169 // This attempts to move whatever is located at old_path to new_path, 171 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { argument 173 return MoveFile(old_path, new_path); 175 return MoveFolder(old_path, new_path); 179 // This copies a file from old_path to new_path. This method ASSERTs and 182 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) 187 CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) argument 319 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument 323 MoveFile(const Pathname &old_path, const Pathname &new_path) argument 327 CopyFolder(const Pathname &old_path, const Pathname &new_path) argument 331 CopyFile(const Pathname &old_path, const Pathname &new_path) argument [all...] |
H A D | win32filesystem.h | 42 // This moves a file from old_path to new_path. If the new path is on a 46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 48 // Moves a folder from old_path to new_path. If the new path is on a different 51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 55 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
H A D | unixfilesystem.h | 64 // This moves a file from old_path to new_path, where "file" can be a plain 67 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 68 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 73 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
H A D | unixfilesystem.cc | 222 const Pathname &new_path) { 228 << " to " << new_path.pathname(); 229 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 232 if (!CopyFile(old_path, new_path)) 241 const Pathname &new_path) { 247 << " to " << new_path.pathname(); 248 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 251 if (!CopyFolder(old_path, new_path)) 267 const Pathname &new_path) { 269 << " to " << new_path 221 MoveFile(const Pathname &old_path, const Pathname &new_path) argument 240 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument 266 CopyFile(const Pathname &old_path, const Pathname &new_path) argument [all...] |
H A D | win32filesystem.cc | 231 const Pathname &new_path) { 237 << " to " << new_path.pathname(); 239 ToUtf16(new_path.pathname()).c_str()) != 0; 243 const Pathname &new_path) { 249 << " to " << new_path.pathname(); 251 ToUtf16(new_path.pathname()).c_str()) == 0) { 256 if (!CopyFolder(old_path, new_path)) 291 const Pathname &new_path) { 293 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0; 230 MoveFile(const Pathname &old_path, const Pathname &new_path) argument 242 MoveFolder(const Pathname &old_path, const Pathname &new_path) argument 290 CopyFile(const Pathname &old_path, const Pathname &new_path) argument
|
/external/chromium_org/net/base/ |
H A D | filename_util.cc | 128 std::string new_path; local 130 new_path = path; 131 ReplaceSubstringsAfterOffset(&new_path, 0, "//", "/"); 132 path.swap(new_path); 133 } while (new_path != path);
|
/external/chromium_org/net/test/ |
H A D | python_utils.cc | 31 std::string new_path(old_path); 33 new_path.append(";"); 35 new_path.append(":"); 37 new_path.append(dir_path.c_str()); 38 env->SetVar(kPythonPathEnv, new_path);
|
/external/lldb/source/Target/ |
H A D | PathMappingList.cpp | 181 PathMappingList::RemapPath (const ConstString &path, ConstString &new_path) const 197 new_path.SetCString(new_path_str.c_str()); 205 PathMappingList::RemapPath (const char *path, std::string &new_path) const 217 new_path = pos->second.GetCString(); 218 new_path.append(path + prefix_len); 231 char new_path[PATH_MAX]; local 244 const size_t new_path_len = snprintf(new_path, sizeof(new_path), "%s/%s", pos->second.GetCString(), orig_path + prefix_len); 245 if (new_path_len < sizeof(new_path)) 247 new_spec.SetFile (new_path, tru 261 Replace(const ConstString &path, const ConstString &new_path, bool notify) argument [all...] |
/external/chromium_org/components/crx_file/ |
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/native_client_sdk/src/tools/ |
H A D | fix_manifest.py | 112 new_path = prefix + sub_package_path[index:] 113 platform['sub_package_path'] = new_path 115 Trace(' %s: "%s" -> "%s"' % (nacl_arch, sub_package_path, new_path))
|
/external/lldb/include/lldb/Target/ |
H A D | PathMappingList.h | 72 GetPathsAtIndex (uint32_t idx, ConstString &path, ConstString &new_path) const; 97 RemapPath (const ConstString &path, ConstString &new_path) const; 100 /// Remaps a source file given \a path into \a new_path. 109 /// @param[out] new_path 113 /// /b true if \a path was successfully located and \a new_path 117 RemapPath (const char *path, std::string &new_path) const;
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/ |
H A D | test_converter.py | 41 def convert_for_webkit(new_path, filename, host=Host()): 42 """ Converts a file's |contents| so it will function correctly in its |new_path| in Webkit. 46 converter = _W3CTestConverter(new_path, filename, host) 56 def __init__(self, new_path, filename, host=Host()): 70 resources_relpath = self._filesystem.relpath(resources_path, new_path) 142 new_path = re.sub('/resources/testharness', 145 converted = re.sub(attr_value, new_path, converted) 146 new_path = re.sub('/common/vendor-prefix', 149 converted = re.sub(attr_value, new_path, converted)
|
/external/chromium_org/tools/git/ |
H A D | move_source_file.py | 128 def UpdateIncludeGuard(old_path, new_path): 129 """Updates the include guard in a file now residing at |new_path|, 136 new_guard = MakeIncludeGuardName(new_path) 138 with open(new_path) as f: 147 'include guard manually. (%s)' % new_path) 149 with open(new_path, 'w') as f:
|
/external/chromium_org/net/url_request/ |
H A D | url_request_file_job.cc | 130 std::string new_path = request_->url().path(); local 131 new_path.push_back('/'); 133 replacements.SetPathStr(new_path); 146 base::FilePath new_path = file_path_; 148 resolved = base::win::ResolveShortcut(new_path, &new_path, NULL); 154 *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/chrome/browser/chromeos/drive/sync/ |
H A D | entry_revert_performer.cc | 74 base::FilePath new_path; 75 error = metadata->GetFilePath(local_id, &new_path); 79 changed_files->Update(new_path, entry, FileChange::ADD_OR_UPDATE);
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/ |
H A D | builtin-help.c | 312 struct strbuf new_path = STRBUF_INIT; local 319 strbuf_addstr(&new_path, system_path(PERF_MAN_PATH)); 320 strbuf_addch(&new_path, ':'); 322 strbuf_addstr(&new_path, old_path); 324 setenv("MANPATH", new_path.buf, 1); 326 strbuf_release(&new_path);
|