Skip to content

pathlib.Path.glob does not follow symlinks #283

Closed
@Keunmo

Description

@Keunmo

It is same issue as introduced in cpython.

Shortly, if there are symlinks under Path(root), Path(root).glob('**/*') does not catch all pathnames from symlink.

So it makes error if user use symlink at datasets and do extract_features.py

Solution is simple. Just replace Path(root).glob('**/'+g) with Path(root).rglob('*/'+g).

I'll open pull request for this issue soon.

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