| 272 | } |
| 273 | |
| 274 | bool AndroidFileSystem::IsReadOnly(const StringView& path) |
| 275 | { |
| 276 | const StringAsANSI<> pathANSI(*path, path.Length()); |
| 277 | if (access(pathANSI.Get(), W_OK) == -1) |
| 278 | { |
| 279 | return errno == EACCES; |
| 280 | } |
| 281 | if (IsAsset(path, pathANSI.Get())) |
| 282 | { |
| 283 | return true; |
| 284 | } |
| 285 | return false; |
| 286 | } |
| 287 | |
| 288 | bool AndroidFileSystem::SetReadOnly(const StringView& path, bool isReadOnly) |
| 289 | { |