diff --git a/btree_standardVFS.cpp b/btree_standardVFS.cpp index fc9814a..c6ee6c4 100644 --- a/btree_standardVFS.cpp +++ b/btree_standardVFS.cpp @@ -1,8 +1,8 @@ #include +#include #include "btree_vfs.h" #include "btree_standardVFS.h" - StandardVFS::StandardVFS(void) { dataFile = NULL; openFile = false; @@ -24,8 +24,8 @@ } // StandardVFS::fCreate bool -StandardVFS::fExist(const char *) { - return false; +StandardVFS::fExist(const char * filename) { + return (access(filename, F_OK) == 0); } // StandardVFS::fExist bool