Breaking out of walk()

Justin Sheehy dworkin at ccs.neu.edu
Tue Jan 18 11:00:35 EST 2000


"Roberts, Robert J" <ROBERT_J_ROBERTS at rl.gov> writes:

> Is there a way to gracefully break out of os.path.walk()?

Put the os.path.walk() in a try-except block, and throw an exception
to break out.

-Justin

 




More information about the Python-list mailing list