MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / basename

Function basename

tools/python-3.11.9-amd64/Lib/ntpath.py:242–244  ·  view source on GitHub ↗

Returns the final component of a pathname

(p)

Source from the content-addressed store, hash-verified

240# Return the tail (basename) part of a path.
241
242def basename(p):
243 """Returns the final component of a pathname"""
244 return split(p)[1]
245
246
247# Return the head (dirname) part of a path.

Callers 6

move_fileFunction · 0.90
move_fileFunction · 0.90
guess_lexer_for_filenameFunction · 0.90
expanduserFunction · 0.70

Calls 1

splitFunction · 0.70

Tested by

no test coverage detected