Searched refs:new_path (Results 1 - 25 of 76) sorted by relevance

1234

/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 = 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 Dbase_file_unittest.cc291 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 Ddownload_file_impl.cc149 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 Dbase_file.cc139 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 Dlit.site.cfg.in9 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 Dpath_util.h22 // Converts |old_path| to |new_path| and returns true, if the old path points
52 base::FilePath* new_path);
H A Dpath_util.cc52 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 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_org/third_party/webrtc/base/
H A Dfileutils.h154 // 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 Dwin32filesystem.h42 // 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 Dunixfilesystem.h64 // 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 Dunixfilesystem.cc222 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 Dwin32filesystem.cc231 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 Dfilename_util.cc128 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 Dpython_utils.cc31 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 DPathMappingList.cpp181 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 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/native_client_sdk/src/tools/
H A Dfix_manifest.py112 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 DPathMappingList.h72 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 Dtest_converter.py41 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 Dmove_source_file.py128 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 Durl_request_file_job.cc130 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 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/chrome/browser/chromeos/drive/sync/
H A Dentry_revert_performer.cc74 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 Dbuiltin-help.c312 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);

Completed in 626 milliseconds

1234