Returns the directory component of a pathname
(p)
| 247 | # Return the head (dirname) part of a path. |
| 248 | |
| 249 | def 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. |
no test coverage detected