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.
Currently the default implementation of win.file_ext fails on files whose name contains a period or dot; for example,
Section 2.5 Metatheory.texis 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 exampleproject.tar.gzwould have an extension of.gzbut 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.