aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Corrales2007-06-04 22:16:17 +0000
committerDavid Corrales2007-06-04 22:16:17 +0000
commit716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a (patch)
tree84e8fe080b2fd041902c00e1b2c3567ec4388faa
parentfedfe66831ebed2822fe74c86ed59b6d69326f3d (diff)
downloadscummvm-rg350-716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a.tar.gz
scummvm-rg350-716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a.tar.bz2
scummvm-rg350-716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a.zip
Expose new fs backend methods in the FilesystemNode class.
svn-id: r27089
-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:
/**