Basic code to iterate over paths and move files