Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Accessing private attributes / methods available on pathlib.Path classes? #339

Open
@lmmx

Description

@lmmx

Hi, I don’t know if I’m misunderstanding the nature of the ‘shim’ here but the 3.12 slots are not actually being populated in the UPath as I expected when I found this code. Specifically accessing _raw_paths fails.

I was really hoping to find a backport for this as it’s used in my library to preserve the leading ./ part of relative file paths like ./foo.txt which regular Path “normalises” to foo.txt.

Have I misunderstood the purpose of the shim class or is this a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    question ❓Further information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions