| 396 | } |
| 397 | |
| 398 | bool FileInfo::isFile() const |
| 399 | { |
| 400 | fs::path path = stringToPath(FileName); |
| 401 | if (fs::exists(path)) { |
| 402 | return fs::is_regular_file(path); |
| 403 | } |
| 404 | |
| 405 | // TODO: Check for valid file name |
| 406 | return true; |
| 407 | } |
| 408 | |
| 409 | bool FileInfo::isDir() const |
| 410 | { |
no outgoing calls
no test coverage detected