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

Function dirname

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

Returns the directory component of a pathname

(p)

Source from the content-addressed store, hash-verified

247# Return the head (dirname) part of a path.
248
249def dirname(p):
250 """Returns the directory component of a pathname"""
251 return split(p)[0]
252
253# Is a path a symbolic link?
254# This will always return false on systems where os.lstat doesn't exist.

Callers 10

copy_stripFunction · 0.90
show_idlehelpFunction · 0.90
load_testsFunction · 0.90
move_fileFunction · 0.90
VCRuntimeRedistMethod · 0.90
move_fileFunction · 0.90
__pip-runner__.pyFile · 0.90
expanduserFunction · 0.70
_readlink_deepFunction · 0.70

Calls 1

splitFunction · 0.70

Tested by

no test coverage detected