short code to set fullPath and subpath in tableview datasource