Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Replace() [2/2]

static void System.IO.File.Replace ( string sourceFileName,
string destinationFileName,
string? destinationBackupFileName,
bool ignoreMetadataErrors )
inlinestatic

Definition at line 568 of file File.cs.

569 {
570 if (sourceFileName == null)
571 {
572 throw new ArgumentNullException("sourceFileName");
573 }
574 if (destinationFileName == null)
575 {
576 throw new ArgumentNullException("destinationFileName");
577 }
578 FileSystem.ReplaceFile(Path.GetFullPath(sourceFileName), Path.GetFullPath(destinationFileName), (destinationBackupFileName != null) ? Path.GetFullPath(destinationBackupFileName) : null, ignoreMetadataErrors);
579 }

References System.IO.Path.GetFullPath(), and System.IO.FileSystem.ReplaceFile().