Reverts erroneous curly brackets removal

This commit is contained in:
BinaryAlley committed 2024-11-03 19:56:56 +02:00
1 parent 36352ea9e8
commit 8c0fe7c742
1 file changed
+2
@@ -241,12 +241,14 @@ internal class DirectoryProviderService : IDirectoryProviderService
string destFilePath = _fileSystem.Path.Combine(destDir, fileName);
// if a file with the same name exists in the destination
if (_fileSystem.File.Exists(destFilePath))
{
if (overwrite)
{
// overwrite the file in the destination directory
_fileSystem.File.Delete(destFilePath);
_fileSystem.File.Move(sourceFilePath, destFilePath);
}
}
else
_fileSystem.File.Move(sourceFilePath, destFilePath); // move the file if it does not exist in the destination directory
}