Called :
./relatedFiles.sh filepath
Ex : ./relatedFiles.sh /data/images/15660178/hdf5_24188462
Result :
A string with all the filepath.*.h5.
Ex : /data/images/15660178//hdf5_24188462.0.h5,/data/images/15660178//hdf5_24188462.1.h5,/data/images/15660178//hdf5_24188462.2.h5,/data/images/15660178//hdf5_24188462.3.h5,/data/images/15660178//hdf5_24188462.4.h5,/data/images/15660178//hdf5_24188462.5.h5,/data/images/15660178//hdf5_24188462.6.h5
https://github.com/cytomine/Cytomine-IMS/blob/master/src/groovy/be/cytomine/multidim/hdf5/output/HDF5FileReader.groovy#L45
https://github.com/cytomine/Cytomine-IMS/blob/master/natives/scripts/relatedFiles.sh
Called : ./relatedFiles.sh filepath Ex : ./relatedFiles.sh /data/images/15660178/hdf5_24188462
Result : A string with all the filepath.*.h5. Ex : /data/images/15660178//hdf5_24188462.0.h5,/data/images/15660178//hdf5_24188462.1.h5,/data/images/15660178//hdf5_24188462.2.h5,/data/images/15660178//hdf5_24188462.3.h5,/data/images/15660178//hdf5_24188462.4.h5,/data/images/15660178//hdf5_24188462.5.h5,/data/images/15660178//hdf5_24188462.6.h5
Seems easy to do it in groovy and will simplify the buildConfig https://github.com/cytomine/Cytomine-IMS/commit/9788443cb4ae8a520cd143ef870ef80e2161f484