I'm not sure about using Jason Orendorff's path module, since it's Yet
Another Dependency. I'm not sure it adds that much value (and it does
add some learning curve for those not familiar with it).
try: import path
except ImportError: import django.core.path as path
I think getting files recursively would be good as long as you can pass
an option to not do that. I also think it would be cool if you could
pass a regex string to match certain files. So you could list all the
zip files in a dir.
theFile = meta.FilePathField(path='/path/to/files', match='*.zip',
recursive=true)
I had not heard of the Path module before. It seems like it would do
everything we wanted with a bit less code than os.listdir. I guess I
really don't have much of an opinion if this gets used or not.
Any one had a chance to look at this yet?