To help narrow down the cause of your file issue, let me know:
A directory being created as a generic file because the OS missed the "Directory" attribute. Scripting Errors: filedot to folder fixed
For a quick, lightweight fix, you can create your own batch script to create folders from filenames and move files into them. A typical script reads all file names in a directory, creates new directories with those names, and then moves the files into the corresponding directory. To help narrow down the cause of your