////////////////////////////////////////////////////////////////////////// FileReadable //////////////////////////////////////////////////////////////////////////
| 145 | // FileReadable |
| 146 | /////////////////////////////////////////////////////////////////////////////// |
| 147 | bool cFileUtil::FileReadable(const TSTRING& fileName) |
| 148 | { |
| 149 | // TODO:BAM on Win32 systems, _taccess doesn't check DACL, |
| 150 | // so all files are really readable |
| 151 | return (_taccess(fileName.c_str(), R_OK) == 0); |
| 152 | } |
| 153 | |
| 154 | /////////////////////////////////////////////////////////////////////////////// |
| 155 | // FileWritable |