This is a terrible question (in my opinion), and I tried my best to find useful documentation with little luck - anyway, here goes:
I have code that should perform some operation for all files in a directory. I set the directory to File and used fileObject.list () to iterate over the files in the directory. I left this code for the night, and it (after long breaks) crashed at some point. I'm trying to figure out at what point this happened (yes, I had a terrible registration). Now according to this javadoc, there is no guarantee of order (in alphabetical order or otherwise) when listing files, I wonder if there is any guarantee of consistency? Sense, when I run the same code twice, can I get the exact same file order? Logic tells me that this is necessary, and I resumed operations based on this, but I am suspicious of this. Also, I am curious that from javadoc "there is no specific order."
source
share