Improving load function of Zoom session class, now will also detect zoom...

Improving load function of Zoom session class, now will also detect zoom sessions without the common directory naming from the device
parent ce4ce620
......@@ -15,6 +15,15 @@ function load( obj, session_path )
catch
end
if isempty( obj.identifier )
lst = dir('*.hprj' );
if numel( lst ) ~= 1
error 'Could not interpret the given path as a zoom session';
else
[ ~, obj.identifier ] = fileparts( lst.name );
end
end
if strcmpi( 'ZOOM', obj.identifier( 1:4 ) )
id_cells = textscan( obj.identifier( 5:8 ), '%d' );
......@@ -23,7 +32,7 @@ function load( obj, session_path )
obj.session_ready = true;
lst = dir( obj.path );
lst = dir( obj.path );
for i = 1:numel( lst )
% Skip folders
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment