Skip to content

win.file_ext should return a set of strings? #271

@rntz

Description

@rntz

Currently the default implementation of win.file_ext fails on files whose name contains a period or dot; for example, Section 2.5 Metatheory.tex is incorrectly regarded as having an extension of .5 Metatheory.tex. A simple "fix" would be to take the segment after the last dot in the file path (this is what I am currently doing). Unfortunately this would fail for files with multiple extensions, for example project.tar.gz would have an extension of .gz but not of .tar.gz. In reality, both of those are correct. This suggests that win.file_ext should return a set of strings rather than a single string.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions