Skip to content
Snippets Groups Projects
Commit 60916d23 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

BUG: If source and destination is the same file, then do not copy file always

parent 9c33c420
No related branches found
No related tags found
No related merge requests found
......@@ -910,6 +910,11 @@ bool SystemTools::FilesDiffer(const char* source,
*/
bool SystemTools::CopyFileAlways(const char* source, const char* destination)
{
// If files are the same do not copy
if ( SystemTools::SameFile(source, destination) )
{
return true;
}
const int bufferSize = 4096;
char buffer[bufferSize];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment