Oops, missed this the first time.

This commit is contained in:
curt
2003-02-15 18:53:44 +00:00
parent a26c677df4
commit 44e7b36a8b

View File

@@ -114,6 +114,12 @@ string SGPath::dir() {
}
}
string SGPath::filename() {
int index = path.rfind(SG_PATH_SEP);
if (index < 0) index = 0;
return path.substr(index);
}
bool SGPath::exists() const {
FILE* fp = fopen( path.c_str(), "r");
if (fp == 0) {