Closed burhan closed 3 weeks ago
The default logic for extracting the extension, will fail if the path has no extension:
>>> "source/foo".split(".")[-1] 'source/foo'
using os.path.splitext provides better extension handling, as it will catch the above case.
@burhan going to close this issue since it looks like @jbnunn merged your PR. Happy to re-open this if needed, just let me know.
The default logic for extracting the extension, will fail if the path has no extension:
using os.path.splitext provides better extension handling, as it will catch the above case.