From: Christian W. <fre...@go...> - 2012-07-25 18:30:44
|
Hi group I'm currently trying to store a directory with all files contained as filesNodes in a h5 file. The reason is that I currently store a single configuration file and model output from this model as tables in one h5 file to a) document the simulation settings and b) store the model results. This works and everything is fine, but I was wondering if there is some elegant way to just copy a set of files/ subfolders into the h5 and also store the filenames, attributes et al. ... It would be even better if I could store my entire model setup (incl. the model executable), too, as this would really mean I or someone else would always be sure that I/ he could reproduce the shared data with the original model setup)... Consider this file structure (should be copied as file nodes), in addition there will be tables storing the model results...: -+- model (binary) | +- setupdir, contains fileA, fileB, ... | +- parameterdir, contains parA, parB, ... Is it possible to just copy them without knowing a) filenames, b) number of files, ...? Without specifying each file, creating a node etc? Is there some API for this? Cheers, C |