pizzarr
pizzarr copied to clipboard
store$contains_item for sub_paths?
User story
Currently, contains_item returns false for parts of keys. For example if there is something at /foo/bar/.zattrs it will only return true for the full path and not necessarily /foo only
Preferred solution
Possible alternatives
Behavior should be the same between all stores (e.g., MemoryStore and DirectoryStore) - currently I think it is not as file.exists will return TRUE for a directory.
Also, behavior should be consistent with Python. If needed, we can add an argument like $contains_item(include_ancestors = FALSE)