Reverse the split path array a second time to put it back in the correct order (so multi-level directory structures are processed correctly).