Change the method 'path2list'