diff options
author | Lars Persson | 2008-01-21 20:48:25 +0000 |
---|---|---|
committer | Lars Persson | 2008-01-21 20:48:25 +0000 |
commit | 8d3f7c68ee61bafc78f738efc474bc2c3c94161c (patch) | |
tree | f988cfb4dbff8785e9b1fca3156342c8d64bad43 /backends | |
parent | 6b188943acce4a9d1d8dfc7f115e30220b523750 (diff) | |
download | scummvm-rg350-8d3f7c68ee61bafc78f738efc474bc2c3c94161c.tar.gz scummvm-rg350-8d3f7c68ee61bafc78f738efc474bc2c3c94161c.tar.bz2 scummvm-rg350-8d3f7c68ee61bafc78f738efc474bc2c3c94161c.zip |
Functionality for is readable and writable
svn-id: r30601
Diffstat (limited to 'backends')
-rw-r--r-- | backends/fs/symbian/symbian-fs.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/fs/symbian/symbian-fs.cpp b/backends/fs/symbian/symbian-fs.cpp index 31521bce1b..90d7bb48d4 100644 --- a/backends/fs/symbian/symbian-fs.cpp +++ b/backends/fs/symbian/symbian-fs.cpp @@ -62,15 +62,15 @@ public: TFileName fname; TPtrC8 ptr((const unsigned char*)_path.c_str(),_path.size()); fname.Copy(ptr); - - return BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), fname); + TBool fileExists = BaflUtils::FileExists(CEikonEnv::Static()->FsSession(), fname); + return fileExists; } virtual String getDisplayName() const { return _displayName; } virtual String getName() const { return _displayName; } virtual String getPath() const { return _path; } virtual bool isDirectory() const { return _isDirectory; } - virtual bool isReadable() const { return true; } //FIXME: this is just a stub - virtual bool isWritable() const { return true; } //FIXME: this is just a stub + virtual bool isReadable() const { return access(_path.c_str(), R_OK) == 0; } //FIXME: this is just a stub + virtual bool isWritable() const { return access(_path.c_str(), W_OK) == 0; } //FIXME: this is just a stub virtual AbstractFilesystemNode *getChild(const String &n) const; virtual bool getChildren(AbstractFSList &list, ListMode mode, bool hidden) const; |