add function convertPathToArray into Core\Module