Skip to content

Commit bd19fcd

Browse files
committed
fix: reverted the changes in DirectorWrapper.cs
1 parent fc877b6 commit bd19fcd

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/TestableIO.System.IO.Abstractions.Wrappers/DirectoryWrapper.cs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,6 @@ public override IDirectoryInfo GetParent(string path)
215215
/// <inheritdoc />
216216
public override void Move(string sourceDirName, string destDirName)
217217
{
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-
}
229218
Directory.Move(sourceDirName, destDirName);
230219
}
231220

0 commit comments

Comments
 (0)