public void RenameFile() { var fullNameWithRenamedFolder = Path.Combine(ProjectFullNameNew.GetDirectoryName(), ProjectFullName.GetFileName()); FileManager.Move(fullNameWithRenamedFolder, this.ProjectFullNameNew); }
public void RenameUserExtensionFile() { var fullNameWithRenamedFolder = Path.Combine(ProjectFullNameNew.GetDirectoryName(), ProjectFullName.GetFileName() + ".user"); if (File.Exists(fullNameWithRenamedFolder)) { FileManager.Move(fullNameWithRenamedFolder, this.ProjectFullNameNew + ".user"); } }