mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-24 07:08:38 -05:00
ENH: Move RenameFile to cmSystemTools
This moves the cmGeneratedFileStream::RenameFile method implementation into cmSystemTools. It works only within a single filesystem volume, but is atomic when the operating system permits.
This commit is contained in:
@@ -166,6 +166,10 @@ public:
|
||||
static bool CopyFileIfDifferent(const char* source,
|
||||
const char* destination);
|
||||
|
||||
/** Rename a file or directory within a single disk volume (atomic
|
||||
if possible). */
|
||||
static bool RenameFile(const char* oldname, const char* newname);
|
||||
|
||||
///! Compute the md5sum of a file
|
||||
static bool ComputeFileMD5(const char* source, char* md5out);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user