=== modified file 'bzrlib/workingtree_4.py' --- bzrlib/workingtree_4.py 2007-03-10 04:37:39 +0000 +++ bzrlib/workingtree_4.py 2007-03-10 15:44:01 +0000 @@ -2027,8 +2027,8 @@ dir_iterator = osutils._walkdirs_utf8(root_abspath, prefix=current_root) try: current_dir_info = dir_iterator.next() - except OSError, e: - if e.errno in (errno.ENOENT, errno.ENOTDIR): + except (OSError, WindowsError), e: + if e.errno in (errno.ENOENT, errno.ENOTDIR) or e.winerror in (267,): # there may be directories in the inventory even though # this path is not a file on disk: so mark it as end of # iterator