Home | History | Annotate | Download | only in download

Lines Matching refs:new_path

87 bool BaseFile::Rename(const FilePath& new_path) {
96 if (new_path == full_path_) {
106 file_util::CreateDirectory(new_path.DirName());
112 if (!file_util::RenameFileAndResetSecurityDescriptor(full_path_, new_path))
117 // 600 to |new_path|. Here, we try to fix up the destination file with
122 if (!file_util::PathExists(new_path))
123 file_util::WriteFile(new_path, "", 0);
124 bool stat_succeeded = (stat(new_path.value().c_str(), &st) == 0);
128 if (!file_util::Move(full_path_, new_path))
132 chmod(new_path.value().c_str(), st.st_mode);
136 full_path_ = new_path;