| 206 | } |
| 207 | |
| 208 | bool DirectoryList::isPathInList(const PathName& path) const |
| 209 | { |
| 210 | if (fb_utils::bootBuild()) |
| 211 | { |
| 212 | return true; |
| 213 | } |
| 214 | |
| 215 | fb_assert(mode != NotInitialized); |
| 216 | |
| 217 | // Handle special cases |
| 218 | switch (mode) |
| 219 | { |
| 220 | case None: |
| 221 | return false; |
| 222 | case Full: |
| 223 | return true; |
| 224 | } |
| 225 | |
| 226 | PathName varpath(path); |
| 227 | if (PathUtils::isRelative(path)) { |
| 228 | PathUtils::concatPath(varpath, PathName(Config::getRootDirectory()), path); |
| 229 | } |
| 230 | |
| 231 | ParsedPath pPath(varpath); |
| 232 | bool rc = false; |
| 233 | for (FB_SIZE_T i = 0; i < getCount(); i++) |
| 234 | { |
| 235 | if ((*this)[i].contains(pPath)) |
| 236 | { |
| 237 | rc = true; |
| 238 | break; |
| 239 | } |
| 240 | } |
| 241 | return rc; |
| 242 | } |
| 243 | |
| 244 | bool DirectoryList::expandFileName(PathName& path, const PathName& name) const |
| 245 | { |
no test coverage detected