| 30 | FileSystem::~FileSystem() {} |
| 31 | |
| 32 | string FileSystem::TranslateName(const string& name) const { |
| 33 | // If the name is empty, CleanPath returns "." which is incorrect and |
| 34 | // we should return the empty path instead. |
| 35 | if (name.empty()) return name; |
| 36 | return io::CleanPath(name); |
| 37 | } |
| 38 | |
| 39 | Status FileSystem::IsDirectory(const string& name) { |
| 40 | // Check if path exists. |