MCPcopy Create free account
hub / github.com/ActiveState/code / getExt

Function getExt

recipes/Python/577546_linecountpy/recipe-577546.py:95–99  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

93
94
95def getExt(file):
96 (root, ext) = os.path.splitext(file)
97 if len(ext) > 0:
98 return ext[1:]
99 return ''
100
101
102def fileMatches(file, options):

Callers 2

fileMatchesFunction · 0.85
doFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected