| 225 | } |
| 226 | |
| 227 | bool UnixFileSystem::FileExists(const StringView& path) |
| 228 | { |
| 229 | struct stat fileInfo; |
| 230 | const UnixString pathANSI(*path, path.Length()); |
| 231 | if (stat(pathANSI.Get(), &fileInfo) != -1) |
| 232 | { |
| 233 | return S_ISREG(fileInfo.st_mode); |
| 234 | } |
| 235 | return false; |
| 236 | } |
| 237 | |
| 238 | bool UnixFileSystem::DeleteFile(const StringView& path) |
| 239 | { |