some PIFile functionality
PIBinaryLog::close fix
This commit is contained in:
@@ -153,6 +153,16 @@ PIString PIFile::FileInfo::dir() const {
|
||||
}
|
||||
|
||||
|
||||
bool PIFile::FileInfo::isAbsolute() const {
|
||||
if (path.isEmpty()) return false;
|
||||
if (path[0] == '/') return true;
|
||||
if (path.size() >= 2) {
|
||||
if (path[0].isAlpha() && path[1] == ':') return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
PIFile::PIFile(): PIIODevice() {}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user