Skip to content

Should parser.from_file acccept `pathlib.Path objects? #458

@afuetterer

Description

@afuetterer

I just realized that parser.from_file does not accept a pathlib.Path object.

import pathlib

path = pathlib.Path("/somepath/filename.pdf")
tika.parser.from_file(path)

fails with AttributeError: 'PosixPath' object has no attribute 'decode'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions