close
Closes the directory immediately and decrements the reference count.
Once the reference count reaches zero, the GDir
structure itself will be freed. Prior to GLib 2.80, GDir
was not reference counted.
It is an error to call any of the GDir
methods other than method@GLib.Dir.ref and method@GLib.Dir.unref on a GDir
after calling method@GLib.Dir.close on it.