Skip to content

Support of Pathlib (suggestion) #24

@pxcluster

Description

@pxcluster

Hi,

Since current practice suggest to use the pathlib module instead of strait str/path/symlink/etc. I suggest to simply add a str() casting on 'filename' symbols in functions expecting a filename (like id_filename()). This would make filemagic transparent when using pathlib (Path('/tmp/myfile')), and avoid misleading error messages yield by ctypes.

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