HomeSort by relevance Sort by last modified time
    Searched refs:new_path (Results 1 - 25 of 88) sorted by null

1 2 3 4

  /bionic/libc/bionic/
link.cpp 32 int link(const char* old_path, const char* new_path) {
33 return linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0);
rename.cpp 32 int rename(const char* old_path, const char* new_path) {
33 return renameat(AT_FDCWD, old_path, AT_FDCWD, new_path);
symlink.cpp 32 int symlink(const char* old_path, const char* new_path) {
33 return symlinkat(old_path, AT_FDCWD, new_path);
  /external/chromium_org/content/browser/download/
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);
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...]
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));
  /external/compiler-rt/test/asan/Unit/
lit.site.cfg.in 9 def push_ld_library_path(config, new_path):
11 (new_path, config.environment['LD_LIBRARY_PATH']))
  /external/chromium_org/third_party/webrtc/base/
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) {
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) = 0
    [all...]
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);
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);
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.pathname()
    [all...]
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;
  /external/chromium_org/chrome/browser/chromeos/file_manager/
path_util.h 22 // Converts |old_path| to |new_path| and returns true, if the old path points
52 base::FilePath* new_path);
path_util.cc 52 base::FilePath* new_path) {
96 *new_path = new_base.Append(relative);
97 return old_path != *new_path;
  /external/linux-tools-perf/perf-3.12.0/tools/perf/util/
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/net/base/
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/
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/
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, true)
    [all...]
  /external/chromium_org/components/crx_file/
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/lldb/include/lldb/Target/
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/
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/net/url_request/
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/native_client_sdk/src/tools/
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/chromium_org/sandbox/win/tools/finder/
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/
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);

Completed in 441 milliseconds

1 2 3 4