| 37 | } |
| 38 | |
| 39 | Status FileSystem::IsDirectory(const string& name) { |
| 40 | // Check if path exists. |
| 41 | TF_RETURN_IF_ERROR(FileExists(name)); |
| 42 | FileStatistics stat; |
| 43 | TF_RETURN_IF_ERROR(Stat(name, &stat)); |
| 44 | if (stat.is_directory) { |
| 45 | return Status::OK(); |
| 46 | } |
| 47 | return Status(tensorflow::error::FAILED_PRECONDITION, "Not a directory"); |
| 48 | } |
| 49 | |
| 50 | void FileSystem::FlushCaches() {} |
| 51 |
nothing calls this directly
no test coverage detected