I recently created a large number of files, all with numeric names, inside a single new folder.
If the files were created in numerical order, then why does the file list show up in random order?
Because of memory buffering, I might expect an occasional swapped pair, but not files that are hundreds of thousands apart, nor basically every file out of order.
I am new to Python and still a novice to TrueNAS, any idea how to improve file creation order?
Edit: I am creating the files in numerical order, running in a python script on Truenas shell. When I try to view the filelist with shell’s “ls -f1” command, files are listed out of correct order.
When loading into Windows Explorer, files are initially shown out of order, but then it takes several seconds to sort them, which they should already be.
File order does not necessarily matter, but I would like to know why they are not right and how to make it more right in the future.