| 207 | } |
| 208 | |
| 209 | std::string Directory::Handle::getName(std::shared_ptr<File> file) { |
| 210 | if (getDir()->maintainsFileIdentity()) { |
| 211 | return getDir()->getName(file); |
| 212 | } |
| 213 | auto& dcache = getDir()->dcache; |
| 214 | for (auto it = dcache.begin(); it != dcache.end(); ++it) { |
| 215 | if (it->second.file == file) { |
| 216 | return it->first; |
| 217 | } |
| 218 | } |
| 219 | return ""; |
| 220 | } |
| 221 | |
| 222 | ssize_t Directory::Handle::getNumEntries() { |
| 223 | size_t mounts = 0; |
no test coverage detected