Properly re-implemented File::exists to FilesystemNode (this should fix bug #1476651, at least partially)

svn-id: r22169
This commit is contained in:
Max Horn 2006-04-26 08:05:40 +00:00
parent 2cbcd49893
commit d5224d87bb
2 changed files with 3 additions and 3 deletions

View File

@ -262,10 +262,10 @@ bool File::open(const String &filename, AccessMode mode, const char *directory)
return true;
}
bool File::exists(const String &filename, const char *directory) {
bool File::exists(const String &filename) {
// FIXME: Ugly ugly hack!
File tmp;
return tmp.open(filename, kFileReadMode, directory);
return tmp.open(filename, kFileReadMode);
}
void File::close() {

View File

@ -61,7 +61,7 @@ public:
void decRef();
virtual bool open(const String &filename, AccessMode mode = kFileReadMode, const char *directory = NULL);
static bool exists(const String &filename, const char *directory = NULL);
static bool exists(const String &filename);
virtual void close();
bool isOpen() const;