We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DirectorWrapper.cs
1 parent fc877b6 commit bd19fcdCopy full SHA for bd19fcd
src/TestableIO.System.IO.Abstractions.Wrappers/DirectoryWrapper.cs
@@ -215,17 +215,6 @@ public override IDirectoryInfo GetParent(string path)
215
/// <inheritdoc />
216
public override void Move(string sourceDirName, string destDirName)
217
{
218
- var fullSourcePath = Path.GetFullPath(sourceDirName);
219
- var fullDestPath = Path.GetFullPath(destDirName);
220
-
221
- if (fullSourcePath.Equals(fullDestPath))
222
- {
223
- throw new IOException("Source and destination path must be different.");
224
- }
225
- else if (Directory.Exists(fullDestPath) || File.Exists(fullDestPath))
226
227
- throw new IOException("Destination path already exists.");
228
229
Directory.Move(sourceDirName, destDirName);
230
}
231
0 commit comments