From 716bcd0b2bcd4d04489bc2fc23a948fad3e2c02a Mon Sep 17 00:00:00 2001 From: David Corrales Date: Mon, 4 Jun 2007 22:16:17 +0000 Subject: Expose new fs backend methods in the FilesystemNode class. svn-id: r27089 --- common/fs.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 @@ -183,10 +188,20 @@ 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: /** -- cgit v1.2.3