Set the entry name
| 172 | |
| 173 | // Set the entry name |
| 174 | void SetName(const std::string& name) { |
| 175 | if (is_dir()) { |
| 176 | as_dir().name = name; |
| 177 | } else { |
| 178 | DCHECK(is_file()); |
| 179 | as_file().name = name; |
| 180 | } |
| 181 | } |
| 182 | |
| 183 | private: |
| 184 | ARROW_DISALLOW_COPY_AND_ASSIGN(Entry); |