os.walk restart
Tim Chase
python.list at tim.thechases.com
Thu Mar 18 06:25:19 EDT 2010
Steve Howell wrote:
> If that's the case, then you might be able to get away with just
> leaving some kind of breadcrumbs whenever you've successfully
> processed a directory or a file,
Unless you're indexing a read-only device (whether hardware
read-only like a CD, or permission-wise read-only like a network
share or a non-priv user walking system directories)...
> Also, I can understand why the operations on the files themselves
> might crash, but can't you catch an exception and keep on chugging?
I also wondered this one, perhaps logging the directory in which
the exception happened to later revisit. :)
-tkc
More information about the Python-list
mailing list