[Tutor] Cannot fix OSError (try/except)
Alan Gauld
alan.gauld at blueyonder.co.uk
Sat Jan 31 16:54:42 EST 2004
> You can pass the name of a directory. If it can't read a file
within
> the directory, it abandons the rest of the directory contents. I
just
> tested that. The except will continue to the next file/directory in
YOUR
> list, but you've potentially skipped readable files in the directory
with
> an error.
But doesn't the OK check do the same? You would need to do a
tree walk to avoid that, wouldn't you?
Alan G.
More information about the Tutor
mailing list