walking a directory with very many files
mk.fraggod at gmail.com
Wed Jun 17 10:24:31 CEST 2009
On Wed, 17 Jun 2009 17:53:33 +1200
Lawrence D'Oliveiro <ldo at geek-central.gen.new_zealand> wrote:
> > Why not use hex representation of md5/sha1-hashed id as a path,
> > arranging them like /path/f/9/e/95ea4926a4 ?
> > That way, you won't have to deal with many-files-in-path problem ...
> Why is that a problem?
So you can os.listdir them?
Don't ask me what for, however, since that's the original question.
Also not every fs still in use handles this situation effectively, see
my original post.
Mike Kazantsev // fraggod.net
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 205 bytes
Desc: not available
More information about the Python-list