is there a better way to check whether a given fil...
# development
f
is there a better way to check whether a given file, discovered from a path glob, is owned by a target?
Copy code
paths = await Get(Paths, PathGlobs(globs))
filepath_to_owner = dict(zip(paths.files, await MultiGet(Get(Owners, OwnersRequest((f,))) for f in paths.files)))
# iterate the dict getting files without owners
this works fine, but perhaps there's a simpler/faster way to check whether the file is owned or not; I am not interested in the owner per se. Bonus question: once I've got a list of
Owners
, how do I merge them into a single entity to be able to construct
InferredDependencies(owners)
or if that's not necessary to merge them at all?