Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
95
def
getExt(file):
96
(root, ext) = os.path.splitext(file)
97
if
len(ext) > 0:
98
return
ext[1:]
99
return
''
100
101
102
def
fileMatches(file, options):
Callers
2
fileMatches
Function · 0.85
doFile
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected