diff options
Diffstat (limited to 'Source/kwsys/SystemTools.cxx')
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index c13ffc2..82c6525 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -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]; |