Return the resource for the root directory of this filesystem or None, given a ``resource`` in ``codebase`` with a list of possible resource root- relative ``paths`` (e.g. extending from the root directory we are looking for).
(paths, resource, codebase)
| 167 | |
| 168 | |
| 169 | def find_root_from_paths(paths, resource, codebase): |
| 170 | """ |
| 171 | Return the resource for the root directory of this filesystem or None, given |
| 172 | a ``resource`` in ``codebase`` with a list of possible resource root- |
| 173 | relative ``paths`` (e.g. extending from the root directory we are looking |
| 174 | for). |
| 175 | """ |
| 176 | for path in paths: |
| 177 | if not resource.path.endswith(path): |
| 178 | continue |
| 179 | return find_root_resource(path=path, resource=resource, codebase=codebase) |
| 180 | |
| 181 | |
| 182 | def find_root_resource(path, resource, codebase): |
nothing calls this directly
no test coverage detected