If you have a directory full of arbitrary and randomly named files, and "time" is the only factor, it may be more appropriate to set the file name to the timestamp to eliminate the need to use tools to view it.
2008_12_31_24_60_60_1000
It would be my recommendation for a flatfile system.
Sometimes, if you have many files, you can group them, for example:
2008/
2008/12/
2008/12/31
2008/12/31/00-12/
2008/12/31/13-24/24_60_60_1000
or something more
2008/
2008/12_31/
etc. etc.
(Moreover, if you do not embed time, what is your other distinguishing characteristic, you cannot have a null file name, and creating monotonically increasing sequences is much more difficult? Info)
source
share