ENH: RemoveFile returns if the file was removed or not

This commit is contained in:
Sebastien Barre 2002-01-18 19:21:02 -05:00
parent 5ab916f64d
commit 747457abb6
2 changed files with 3 additions and 3 deletions

View File

@ -894,9 +894,9 @@ long int cmSystemTools::ModifiedTime(const char* filename)
void cmSystemTools::RemoveFile(const char* source)
bool cmSystemTools::RemoveFile(const char* source)
{
unlink(source);
return unlink(source) != 0 ? false : true;
}
bool cmSystemTools::IsOn(const char* val)

View File

@ -212,7 +212,7 @@ public:
const char* destination);
///! Remove a file.
static void RemoveFile(const char* source);
static bool RemoveFile(const char* source);
/**
* does a string indicate a true or on value ? This is not the same