[plt-scheme] directory-list order?
On Sep 13, Paul Graham wrote:
> Is it defined what order directory-list returns filenames in?
Nothing documented -- the source simply creates a list from the system
call with no sorting.
> It currently seems to return files in order of creation. This
> is extremely convenient for the app I'm writing, and it would
> be handy if I could count on it... --pg
My guess is that this is due to the FS implementation. If you need
them sorted by time, sort the result using
`file-or-directory-modify-seconds'.
--
((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay:
http://www.barzilay.org/ Maze is Life!