[vlc-devel] [RFC] Directory access: use a decent?insertion?order

Antoine Cellerier dionoea at videolan.org
Mon Feb 15 10:21:24 CET 2010


On Sun, Feb 14, 2010, Rémi Denis-Courmont wrote:
> You don't need to add a readdir() call, of course. But you can't anymore make 
> one call per Block() call. You will read the whole dir, sort it, and only 
> *then* output items, all of them for the directory. Typically, you'd use 
> scandir() here, which in fact hides all the readdir calls.

The file list doesn't need to be sorted as far as I understand, only the
tree structure extension stuff does. (Of course I might be completely
wrong)

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list