Returns the final component of a pathname
(p)
| 240 | # Return the tail (basename) part of a path. |
| 241 | |
| 242 | def 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. |
no test coverage detected