Skip to content
Snippets Groups Projects

get file from development onto master, createLinkedHDF5.m

Merged Hock, Martin requested to merge sync-link-hdf5 into master
1 file
+ 8
7
Compare changes
  • Side-by-side
  • Inline
+ 8
7
@@ -12,17 +12,18 @@ end
[~,filename,ext] = fileparts(SourceFile);
try
% try
fid = H5F.create(fullfile(TargetPath,[filename,ext]));
%create External Link to Sourcefile in the Group linkToExternal
H5L.create_external(['..',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
%H5L.create_external(['..',filesep,'data',filesep,SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original
H5L.create_external(['..\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id);
%H5L.create_external(['..\data\',SourceFile],'/',fid, SourceFile ,plist_id,plist_id); %original
H5F.close(fid);
disp([fullfile(TargetPath,[filename,ext]),' created']);
status = 1;
catch
warning('No linked HDF file was created');
status = 0;
end
% catch
% warning('No linked HDF file was created');
% status = 0;
% end
end
Loading