changed by mind, added basename_string and dir_string instead - they return strings, whereas the non _string variant returns opaque handle