Skip to content

Double check and document (if needed) .name conventions for iter_collections #554

Closed
@mih

Description

@mih

I cannot put my finger on it, but I feel the nature of the value of .name for a reported item is non-uniform.

I am not aware of a documentation for the convention, if how iterators should behave.

The .name should always be a PurePath|Path objects.

However, should it carry the base path (key argument to the iterator) in it? Or not?

It would make sense to me to never have it. Rational:

There is no reason while a (file) collection should be on a file system. It could have a very non-Path base address and no hierarchical organization inside (think object store: some URL, plus some object ID).

We need to go through and verify that we did not overfit to a filesystem use case in an implementation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions