steven at REMOVE.THIS.cybersource.com.au
Wed Mar 17 23:42:35 CET 2010
On Wed, 17 Mar 2010 15:04:14 -0700, Keir Vaughan-taylor wrote:
> I am traversing a large set of directories using
> for root, dirs, files in os.walk(basedir):
> run program
> Being a huge directory set the traversal is taking days to do a
> Sometimes it is the case there is a crash because of a programming
> As each directory is processed the name of the directory is written to a
What, a proper, honest-to-goodness core dump?
Or do you mean an exception?
> I want to be able to restart the walk from the directory where it
> Is this possible?
Quick and dirty with no error-checking:
last_visited = open("last_visited.txt", 'r').read()
for root, dirs, files in os.walk(last_visited or basedir):
More information about the Python-list