The function constructPath accepts an object which has a path key. path can either be a string in which case it is return
constructPath
path
string