Home | History | Annotate | Download | only in base

Lines Matching refs:new_path

169   // This moves a file from old_path to new_path, where "old_path" is a
175 const Pathname &new_path) = 0;
177 // This moves a directory from old_path to new_path, where "old_path" is a
182 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
184 // This attempts to move whatever is located at old_path to new_path,
186 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
188 return MoveFile(old_path, new_path);
190 return MoveFolder(old_path, new_path);
194 // This copies a file from old_path to new_path. This method ASSERTs and
197 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
199 // This copies a folder from old_path to new_path.
200 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
202 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
204 return CopyFile(old_path, new_path);
206 return CopyFolder(old_path, new_path);
334 static bool MoveFolder(const Pathname &old_path, const Pathname &new_path) {
335 return EnsureDefaultFilesystem()->MoveFolder(old_path, new_path);
338 static bool MoveFile(const Pathname &old_path, const Pathname &new_path) {
339 return EnsureDefaultFilesystem()->MoveFile(old_path, new_path);
342 static bool CopyFolder(const Pathname &old_path, const Pathname &new_path) {
343 return EnsureDefaultFilesystem()->CopyFolder(old_path, new_path);
346 static bool CopyFile(const Pathname &old_path, const Pathname &new_path) {
347 return EnsureDefaultFilesystem()->CopyFile(old_path, new_path);