H5F.get_name

Name of HDF5 file

Syntax

name = H5F.get_name(obj_id)

Description

name = H5F.get_name(obj_id) returns the name of the file to which the object obj_id belongs. The object can be a group, dataset, attribute, or named data type.

Examples

fid = H5F.open('example.h5');
name = H5F.get_name(fid);
H5F.close(fid);
Was this topic helpful?