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

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions