completed getPath() function (altered getAllIds() function in TsvData)