So after reading Re: perlbug: seekdir/readdir broken on win32 on 5.008009, 5.012002, 5.014001 I looked up some of these system library seekdir docs
- http://www.delorie.com/gnu/docs/dirent/directory.3.html
- Telldir
and
seekdir
are unreliable when used in conjunction with
file systems that perform directory compaction or expansion
or when the directory stream has been closed and reopened.
It is best to avoid using
telldir
and
seekdir
altogether.
http://www.vnode.ch/fixing_seekdir# When seekdir() Won't Seek to the Right Position | vnode.ch
- (and sorry that it took us almost twenty-five years to fix it)
Yes, I think I will avoid seekdir/telldir as much as possible