PITimer important fix! ASCII-art start ...
git-svn-id: svn://db.shs.com.ru/pip@94 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -251,6 +251,16 @@ bool PIFile::isExists(const PIString & path) {
|
||||
}
|
||||
|
||||
|
||||
bool PIFile::remove(const PIString & path) {
|
||||
#ifdef WINDOWS
|
||||
if (PIDir::isExists(path))
|
||||
return RemoveDirectory(path.data()) > 0;
|
||||
else
|
||||
#endif
|
||||
return ::remove(path.data()) == 0;
|
||||
}
|
||||
|
||||
|
||||
PIString PIFile::constructFullPath() const {
|
||||
return fullPathPrefix() + "://" + path();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user