Makes a direction list from path