You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.IO/Directory.xml
+14-12Lines changed: 14 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -4006,27 +4006,29 @@ An I/O error occurred.</exception>
4006
4006
</Parameters>
4007
4007
<Docs>
4008
4008
<paramname="sourceDirName">The path of the file or directory to move.</param>
4009
-
<paramname="destDirName">The path to the new location for <paramrefname="sourceDirName" />. If <paramrefname="sourceDirName" /> is a file, then <paramrefname="destDirName" /> must also be a file name.</param>
4009
+
<paramname="destDirName">The path to the new location for <paramrefname="sourceDirName" /> or its contents. If <paramrefname="sourceDirName" /> is a file, then <paramrefname="destDirName" /> must also be a file name.</param>
4010
4010
<summary>Moves a file or a directory and its contents to a new location.</summary>
4011
4011
<remarks>
4012
4012
<formattype="text/markdown"><.
4022
-
4024
+
For a list of common I/O tasks, see [Common I/O Tasks](/dotnet/standard/io/common-i-o-tasks).
4023
4025
4024
4026
> [!NOTE]
4025
-
> Starting with .NET Core 3.0, the `Move` method throws an <xref:System.IO.IOException> in all platforms when the `destDirName` already exists. In .NET Core 2.2 and previous versions, the exception was only thrown on Windows, and other platforms could either fail or overwrite the `destDirName`. See [C++ rename](https://linux.die.net/man/2/rename).
4026
-
4027
-
4027
+
> Starting with .NET Core 3.0, the `Move` method throws an <xref:System.IO.IOException> in all platforms when the `destDirName` already exists. In .NET Core 2.2 and previous versions, the exception was only thrown on Windows, and other platforms could either fail or overwrite the `destDirName`. See [C++ rename](https://linux.die.net/man/2/rename).
4028
+
4028
4029
## Examples
4029
-
The following example demonstrates how to move a directory and all its files to a new directory. The original directory no longer exists after it has been moved.
4030
+
4031
+
The following example demonstrates how to move a directory and all its files to a new directory. The original directory no longer exists after it has been moved.
0 commit comments