mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 16:11:10 +00:00
Reverts erroneous curly brackets removal
This commit is contained in:
1 parent
36352ea9e8
commit
8c0fe7c742
1 file changed
+2
+2
@@ -241,12 +241,14 @@ internal class DirectoryProviderService : IDirectoryProviderService
|
|||||||
string destFilePath = _fileSystem.Path.Combine(destDir, fileName);
|
string destFilePath = _fileSystem.Path.Combine(destDir, fileName);
|
||||||
// if a file with the same name exists in the destination
|
// if a file with the same name exists in the destination
|
||||||
if (_fileSystem.File.Exists(destFilePath))
|
if (_fileSystem.File.Exists(destFilePath))
|
||||||
|
{
|
||||||
if (overwrite)
|
if (overwrite)
|
||||||
{
|
{
|
||||||
// overwrite the file in the destination directory
|
// overwrite the file in the destination directory
|
||||||
_fileSystem.File.Delete(destFilePath);
|
_fileSystem.File.Delete(destFilePath);
|
||||||
_fileSystem.File.Move(sourceFilePath, destFilePath);
|
_fileSystem.File.Move(sourceFilePath, destFilePath);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
_fileSystem.File.Move(sourceFilePath, destFilePath); // move the file if it does not exist in the destination directory
|
_fileSystem.File.Move(sourceFilePath, destFilePath); // move the file if it does not exist in the destination directory
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user