| 91 | } |
| 92 | |
| 93 | bool FileOpsImpl::FileWriteable |
| 94 | ( |
| 95 | const string _filename |
| 96 | ) |
| 97 | { |
| 98 | if (!FileExists(_filename)) { |
| 99 | string fn = ozwdirname(_filename); |
| 100 | return (access(fn.c_str(), W_OK|F_OK) == 0); |
| 101 | } |
| 102 | |
| 103 | return (access(_filename.c_str(), W_OK|F_OK) == 0); |
| 104 | |
| 105 | } |
| 106 | |
| 107 | bool FileOpsImpl::FileRotate |
| 108 | ( |