| 1206 | } |
| 1207 | |
| 1208 | Status OSSFileSystem::IsDirectory(const std::string& fname) { |
| 1209 | FileStatistics stat; |
| 1210 | TF_RETURN_IF_ERROR(Stat(fname, &stat)); |
| 1211 | |
| 1212 | return stat.is_directory |
| 1213 | ? Status::OK() |
| 1214 | : errors::FailedPrecondition(fname + " is not a directory"); |
| 1215 | } |
| 1216 | |
| 1217 | Status OSSFileSystem::DeleteRecursively(const std::string& dirname, |
| 1218 | int64* undeleted_files, |
nothing calls this directly
no test coverage detected