seek(p1)
public
Seeks to a particular location in dir. integer must be a
value returned by Dir#tell.
d = Dir.new("testdir")
d.read
i = d.tell
d.read
d.seek(i)
d.read
Show source
static VALUE
dir_seek(VALUE dir, VALUE pos)
{
struct dir_data *dirp;
off_t p = NUM2OFFT(pos);
GetDIR(dir, dirp);
seekdir(dirp->dir, p);
return dir;
rb_notimplement();
}