Auto-closing external links

Hi,

I have a question about external links... if I open a file, and
resource "/foo" is an external link, when I open it HDF5 goes out and
opens the file in which it resides. Is there some mechanism to
automatically close this file? I ask because as the user of "/foo" I
have no idea whether opening another file is going to be a side effect
of my accessing it. In practice, this leads to "leaks" of file
identifiers in my project (h5py).

Thanks,
Andrew

Hi Andrew,

···

On Sep 26, 2010, at 10:16 AM, Andrew Collette wrote:

Hi,

I have a question about external links... if I open a file, and
resource "/foo" is an external link, when I open it HDF5 goes out and
opens the file in which it resides. Is there some mechanism to
automatically close this file? I ask because as the user of "/foo" I
have no idea whether opening another file is going to be a side effect
of my accessing it. In practice, this leads to "leaks" of file
identifiers in my project (h5py).

  The file opened via an external link will be automatically closed by the HDF5 library when the object is closed (as long as nothing else is holding that file open). Are you seeing some other behavior?

  Quincey