Home | History | Annotate | Download | only in base

Lines Matching refs:new_path

150   // This moves a file from old_path to new_path, where "old_path" is a
156 const Pathname &new_path) = 0;
158 // This moves a directory from old_path to new_path, where "old_path" is a
163 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0;
165 // This attempts to move whatever is located at old_path to new_path,
167 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
169 return MoveFile(old_path, new_path);
171 return MoveFolder(old_path, new_path);
175 // This copies a file from old_path to new_path. This method ASSERTs and
178 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0;
180 // This copies a folder from old_path to new_path.
181 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
183 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
185 return CopyFile(old_path, new_path);
187 return CopyFolder(old_path, new_path);
315 static bool MoveFolder(const Pathname &old_path, const Pathname &new_path) {
316 return EnsureDefaultFilesystem()->MoveFolder(old_path, new_path);
319 static bool MoveFile(const Pathname &old_path, const Pathname &new_path) {
320 return EnsureDefaultFilesystem()->MoveFile(old_path, new_path);
323 static bool CopyFolder(const Pathname &old_path, const Pathname &new_path) {
324 return EnsureDefaultFilesystem()->CopyFolder(old_path, new_path);
327 static bool CopyFile(const Pathname &old_path, const Pathname &new_path) {
328 return EnsureDefaultFilesystem()->CopyFile(old_path, new_path);