juergbi opened a new pull request, #2200: URL: https://github.com/apache/buildstream/pull/2200
`os.path.split()` splits the path into a `(head, tail)` pair, not into a list of all path segments. Use `pathlib` to iterate over all path segments and also reject absolute paths. `_ensure_real_directory()` is only called from `_process_list()`, though, where it's separately called for each level in the hierarchy. Due to this, each path segment was already checked and thus, the previous bug didn't cause any issues. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
