aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/file.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/common/file.cpp b/common/file.cpp
index 2c485627bb..4d6fd5a69f 100644
--- a/common/file.cpp
+++ b/common/file.cpp
@@ -444,7 +444,13 @@ bool File::exists(const String &filename) {
// path was passed). But we only use this to filter out directories.
FilesystemNode file(filename);
- return (!file.isDirectory() && file.exists());
+ // FIXME: since (as stated in the comment above) FilesystemNode creation
+ // just works for absolute paths, and we use this to tell if a file
+ // exsists in any of the setup paths we can't use:
+ //return (!file.isDirectory() && file.exists());
+ // if file.exsits() fails
+ if (file.exists())
+ return !file.isDirectory();
//***DEPRECATED COMMENTS BELOW, LEFT FOR DISCUSSION***
// Next, try to locate the file by *opening* it in read mode. This has