Only allow for a single root directory.
| 266 | public: |
| 267 | // Only allow for a single root directory. |
| 268 | Status IsDirectory(const string& dirname) override { |
| 269 | if (dirname == "." || dirname.empty()) { |
| 270 | return Status::OK(); |
| 271 | } |
| 272 | return Status(tensorflow::error::FAILED_PRECONDITION, "Not a dir"); |
| 273 | } |
| 274 | |
| 275 | // Simulating a FS with a root dir and a single file underneath it. |
| 276 | Status GetChildren(const string& dir, std::vector<string>* result) override { |