Home
last modified time | relevance | path

Searched refs:old_path (Results 1 – 14 of 14) sorted by relevance

/external/webrtc/webrtc/base/
Dfileutils.h155 virtual bool MoveFolder(const Pathname &old_path,
163 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
167 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFileOrFolder() argument
168 if (IsFile(old_path)) { in MoveFileOrFolder()
169 return MoveFile(old_path, new_path); in MoveFileOrFolder()
171 return MoveFolder(old_path, new_path); in MoveFileOrFolder()
178 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
181 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
183 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) { in CopyFileOrFolder() argument
184 if (IsFile(old_path)) in CopyFileOrFolder()
[all …]
Dunixfilesystem.cc222 bool UnixFilesystem::MoveFile(const Pathname &old_path, in MoveFile() argument
224 if (!IsFile(old_path)) { in MoveFile()
225 ASSERT(IsFile(old_path)); in MoveFile()
228 LOG(LS_VERBOSE) << "Moving " << old_path.pathname() in MoveFile()
230 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { in MoveFile()
233 if (!CopyFile(old_path, new_path)) in MoveFile()
235 if (!DeleteFile(old_path)) in MoveFile()
241 bool UnixFilesystem::MoveFolder(const Pathname &old_path, in MoveFolder() argument
243 if (!IsFolder(old_path)) { in MoveFolder()
244 ASSERT(IsFolder(old_path)); in MoveFolder()
[all …]
Dwin32filesystem.cc231 bool Win32Filesystem::MoveFile(const Pathname &old_path, in MoveFile() argument
233 if (!IsFile(old_path)) { in MoveFile()
234 ASSERT(IsFile(old_path)); in MoveFile()
237 LOG(LS_INFO) << "Moving " << old_path.pathname() in MoveFile()
239 return ::MoveFile(ToUtf16(old_path.pathname()).c_str(), in MoveFile()
243 bool Win32Filesystem::MoveFolder(const Pathname &old_path, in MoveFolder() argument
245 if (!IsFolder(old_path)) { in MoveFolder()
246 ASSERT(IsFolder(old_path)); in MoveFolder()
249 LOG(LS_INFO) << "Moving " << old_path.pathname() in MoveFolder()
251 if (::MoveFile(ToUtf16(old_path.pathname()).c_str(), in MoveFolder()
[all …]
Dwin32filesystem.h46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path);
51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path);
55 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
Dunixfilesystem.h67 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override;
68 bool MoveFolder(const Pathname& old_path, const Pathname& new_path) override;
73 bool CopyFile(const Pathname& old_path, const Pathname& new_path) override;
Dfileutils_mock.h177 bool MoveFolder(const Pathname &old_path, const Pathname &new_path) { in MoveFolder() argument
181 bool MoveFile(const Pathname &old_path, const Pathname &new_path) { in MoveFile() argument
185 bool CopyFile(const Pathname &old_path, const Pathname &new_path) { in CopyFile() argument
Dfileutils.cc156 bool FilesystemInterface::CopyFolder(const Pathname &old_path, in DirectoryIterator() argument
159 VERIFY(IsFolder(old_path)); in DirectoryIterator()
163 old_dir.SetFolder(old_path.pathname()); in DirectoryIterator()
/external/ltp/testcases/kernel/fs/mongo/
Dmongo_slinks.c22 char *old_path; in main() local
40 old_path = strtok(line_buffer, "\t "); in main()
43 if (!old_path || !new_path) /* empty lines at the end of file */ in main()
47 if (symlink(old_path, new_path) != 0) { in main()
/external/elfutils/tests/
Dtest-wrapper.sh41 old_path="${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH"
50 LD_LIBRARY_PATH="$built_library_path$old_path"
55 LD_LIBRARY_PATH="${libdir}:${libdir}/elfutils$old_path"
/external/pdfium/core/fpdfapi/page/
Dcpdf_clippath.cpp85 const CPDF_Path& old_path = pData->m_PathAndTypeList.back().first; in AppendPath() local
86 if (old_path.IsRect()) { in AppendPath()
87 CFX_PointF point0 = old_path.GetPoint(0); in AppendPath()
88 CFX_PointF point2 = old_path.GetPoint(2); in AppendPath()
/external/webrtc/tools/valgrind-webrtc/drmemory/
DPRESUBMIT.py27 old_path = sys.path
33 sys.path = old_path
/external/skia/infra/bots/
Dwin_toolchain_utils.py51 def abstract(win_toolchain_json, old_path): argument
53 _replace_in_file(win_toolchain_json, old_path, PLACEHOLDER)
/external/selinux/python/sepolicy/sepolicy/
Dmanpage.py186 self.old_path = path + "/"
187 self.new_path = self.old_path + self.os_version + "/"
208 … convert_manpage_to_html((self.new_path + d.split("_selinux")[0] + ".html"), self.old_path + d)
213 … convert_manpage_to_html((self.new_path + r.split("_selinux")[0] + ".html"), self.old_path + r)
216 index = self.old_path + "index.html"
333 style_css = self.old_path + "style.css"
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_test.py867 for old_path, new_path in [('wxyyw', 'xyzzy'), ('/abccb', 'cdeed')]:
868 self.filesystem.CreateFile('%s/plugh' % old_path, contents='test')
869 self.assertTrue(self.filesystem.Exists(old_path))
871 self.os.rename(old_path, new_path)
872 self.assertFalse(self.filesystem.Exists(old_path))