Returns the directory component of a pathname
(p, /)
| 259 | # Return the head (dirname) part of a path. |
| 260 | |
| 261 | def dirname(p, /): |
| 262 | """Returns the directory component of a pathname""" |
| 263 | return split(p)[0] |
| 264 | |
| 265 | |
| 266 | # Is a path a mount point? |
searching dependent graphs…