Home | History | Annotate | Download | only in base

Lines Matching refs:new_path

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;
184 // This copies a folder from old_path to new_path.
185 bool CopyFolder(const Pathname &old_path, const Pathname &new_path);
187 bool CopyFileOrFolder(const Pathname &old_path, const Pathname &new_path) {
189 return CopyFile(old_path, new_path);
191 return CopyFolder(old_path, new_path);
319 static bool MoveFolder(const Pathname &old_path, const Pathname &new_path) {
320 return EnsureDefaultFilesystem()->MoveFolder(old_path, new_path);
323 static bool MoveFile(const Pathname &old_path, const Pathname &new_path) {
324 return EnsureDefaultFilesystem()->MoveFile(old_path, new_path);
327 static bool CopyFolder(const Pathname &old_path, const Pathname &new_path) {
328 return EnsureDefaultFilesystem()->CopyFolder(old_path, new_path);
331 static bool CopyFile(const Pathname &old_path, const Pathname &new_path) {
332 return EnsureDefaultFilesystem()->CopyFile(old_path, new_path);