public bool Step ()
{
if (done)
return false;
GLib.FileInfo info = GLib.FileFactory.NewForUri (item.DefaultVersion.Uri).QueryInfo ("access::can-write", GLib.FileQueryInfoFlags.None, null);
if (!info.GetAttributeBoolean("access::can-write")) {
throw new RotateException (Catalog.GetString ("Unable to rotate readonly file"), item.DefaultVersion.Uri, true);
}
Rotate (item.DefaultVersion.Uri, direction);
done = true;
return !done;
}
}