mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-27 19:10:20 +01:00
overwrite existing files on windows when moving files
This commit is contained in:
committed by
Guenter Obiltschnig
parent
26e3dd273b
commit
40c2df1c52
@@ -297,7 +297,7 @@ void FileImpl::renameToImpl(const std::string& path)
|
||||
{
|
||||
poco_assert (!_path.empty());
|
||||
|
||||
if (MoveFileA(_path.c_str(), path.c_str()) == 0)
|
||||
if (MoveFileExA(_path.c_str(), path.c_str(), MOVEFILE_REPLACE_EXISTING) == 0)
|
||||
handleLastErrorImpl(_path);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user