Use readdir package to ensure alphabetical file listing and simplify recursion