Is There Any Way to Rename a Presentation Succinctly?

Hi,
I trying to find a way to rename a presentation.
Currently,I am using the code below to rename a presentation

presentation.Save("PutNewFileNameHere.pptx", Aspose.Slides.Export.SaveFormat.Pptx);

However,by using this piece of code to rename a presentation,what I get is another new presention with the new name,and I need to delete the previous presention so that it looks like I “renamed” it.
This way to rename a presentation is rather inconvenient and sometimes tricky.
So could you please tell me whether there is a way to rename a presentation succinctly?
Thank you in advance! :heartbeat: :heartbeat: :heartbeat:

Regards.

@Loui,
Thank you for your question.

You can rename the presentation file using the System.IO.File class. The following code example shows you how to do this:

System.IO.File.Move("CurrentFileName.pptx", "PutNewFileNameHere.pptx");

Thank you so much for your help!

@Loui,
Thank you for using Aspose.Slides.