| 152 | } |
| 153 | |
| 154 | bool File::isFile(String const& path) { |
| 155 | struct stat st_buf; |
| 156 | int status = stat(path.utf8Ptr(), &st_buf); |
| 157 | if (status != 0) |
| 158 | return false; |
| 159 | |
| 160 | return S_ISREG(st_buf.st_mode); |
| 161 | } |
| 162 | |
| 163 | bool File::isDirectory(String const& path) { |
| 164 | struct stat st_buf; |