Gets the string of the parent specified by this pathname. This is basically, by default the string before the last path separator of the absolute pathname.
# S3 method for default
getParent(pathname, depth=1L, fsep=.Platform$file.sep, ...)
A character
string of the pathname to be checked.
An integer
specifying how many generations up the
path should go.
A character
string of the file separator.
Not used.
Returns a character
string if the parent exists, otherwise NULL
.