Skip to content

Commit fc877b6

Browse files
committed
fix: corrected the code
1 parent ac4ebd1 commit fc877b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public override void Move(string sourceDirName, string destDirName)
218218
var fullSourcePath = Path.GetFullPath(sourceDirName);
219219
var fullDestPath = Path.GetFullPath(destDirName);
220220

221-
if (fullDestPath.Equals(fullDestPath))
221+
if (fullSourcePath.Equals(fullDestPath))
222222
{
223223
throw new IOException("Source and destination path must be different.");
224224
}

0 commit comments

Comments
 (0)