Returns the top-level directory name from the given path. separator options: system, both_slash (default), forward_slash, backslash.
Returns the top-level directory name from the given path. separator options: system, both_slash (default), forward_slash, backslash.