Skip to content

Commit 06d5b03

Browse files
authored
destinationBackupFileName overwritten aswell
System.IO.File.Replace: If the `destinationBackupFileName` already exists it will be overwritten with the contents of the `destinationFileName` file.
1 parent d8fa53a commit 06d5b03

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xml/System.IO/File.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3138,6 +3138,8 @@
31383138
If the `sourceFileName` and `destinationFileName` are on different volumes, this method will raise an exception. If the `destinationBackupFileName` is on a different volume from the source file, the backup file will be deleted.
31393139
31403140
Pass `null` to the `destinationBackupFileName` parameter if you do not want to create a backup of the file being replaced.
3141+
3142+
If the `destinationBackupFileName` already exists it will be overwritten with the contents of the `destinationFileName` file.
31413143
31423144
31433145
@@ -3228,6 +3230,8 @@
32283230
If the `sourceFileName` and `destinationFileName` are on different volumes, this method will raise an exception. If the `destinationBackupFileName` is on a different volume from the source file, the backup file will be deleted.
32293231
32303232
Pass `null` to the `destinationBackupFileName` parameter if you do not want to create a backup of the file being replaced.
3233+
3234+
If the `destinationBackupFileName` already exists it will be overwritten with the contents of the `destinationFileName` file.
32313235
32323236
32333237

0 commit comments

Comments
 (0)