or download this
When
using Unix or MSDOS syntax, the return value conforms to th
+e behav-
...
example, for the input file specification lib/, fileparse()
+ consid-
ers the directory name to be lib/, while dirname() consider
+s the
directory name to be .).