structure opened this issue on Jun 27, 2019 ยท 94 posts
adp001 posted Sat, 05 December 2020 at 3:57 PM
Or, to make a simplyfied version of what os.path.splitext() does (needs os imported because we need the path seperator):
hasext = lambda path: path[path.rfind(os.sep) if os.sep in path else 0:].rfind(".") != -1
P.s.: I love it fast and dirty ;)