aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/fs.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/common/fs.h b/common/fs.h
index 5e441a212f..c78980a813 100644
--- a/common/fs.h
+++ b/common/fs.h
@@ -127,6 +127,11 @@ public:
*/
virtual Common::String displayName() const;
+ /*
+ * Indicates whether the object refered by this path exists in the filesystem or not.
+ */
+ virtual bool exists() const;
+
/**
* Return a string representation of the name of the file. This is can be
* used e.g. by detection code that relies on matching the name of a given
@@ -184,9 +189,19 @@ public:
virtual bool isDirectory() const;
/**
+ * Indicates whether this path can be read from or not.
+ */
+ virtual bool isReadable() const;
+
+ /**
* Indicates whether this path is valid or not for usage.
*/
bool isValid() const;
+
+ /**
+ * Indicates whether this path can be written to or not.
+ */
+ virtual bool isWritable() const;
protected:
/**