Lines Matching refs:fsItr
79 fs::recursive_directory_iterator fsItr(serialPath.parent_path(), kOpts, fsStatus); in getIfaceName() local
85 for (; fsStatus == fsErrors::ok && fsItr != fs::recursive_directory_iterator(); in getIfaceName()
86 fsItr.increment(fsStatus)) { in getIfaceName()
89 bool isDir = fsItr->is_directory(fsStatus); in getIfaceName()
95 std::string currentDir = *(--(fsItr->path().end())); in getIfaceName()
99 fs::directory_iterator netItr(fsItr->path(), kOpts, fsStatus); in getIfaceName()
101 LOG(ERROR) << "Failed to open " << fsItr->path() << " to get net name!"; in getIfaceName()
112 LOG(ERROR) << "Failed to verify " << fsItr->path() << " has valid net name!"; in getIfaceName()
117 LOG(ERROR) << "Found more than one net name in " << fsItr->path() << "!"; in getIfaceName()
161 fs::recursive_directory_iterator fsItr(kDevPath, kOpts, fsStatus); in findUsbDevice() local
167 for (; fsStatus == fsErrors::ok && fsItr != fs::recursive_directory_iterator(); in findUsbDevice()
168 fsItr.increment(fsStatus)) { in findUsbDevice()
170 bool isDir = fsItr->is_directory(fsStatus); in findUsbDevice()
177 auto serialnoPath = fsItr->path() / "serial"; in findUsbDevice()
185 fsItr.disable_recursion_pending(); in findUsbDevice()