Returns the final component of a pathname
(p, /)
| 252 | # Return the tail (basename) part of a path. |
| 253 | |
| 254 | def basename(p, /): |
| 255 | """Returns the final component of a pathname""" |
| 256 | return split(p)[1] |
| 257 | |
| 258 | |
| 259 | # Return the head (dirname) part of a path. |
no test coverage detected
searching dependent graphs…