diff --git a/cfs_properties/functions/cfs_check_properties.m b/cfs_properties/functions/cfs_check_properties.m index 0a7c734..78f9332 100644 --- a/cfs_properties/functions/cfs_check_properties.m +++ b/cfs_properties/functions/cfs_check_properties.m @@ -5,8 +5,13 @@ else return end +if((nargin >= 2)) + path = varargin{2}; +else + return; +end -% Get required context structure +% Check case parameters switch contextName %% General case 'BST_path' @@ -18,11 +23,17 @@ checked = false; end [~,values] = fileattrib(path); - if(values.UserWrite) - app.BSTdbpathEditField.Value = folder; + if(~values.UserWrite) + checked = false; end case 'output_path' - + if(~isfolder(fullfile(path)) && ~isequal(path,'local')) + checked = false; + end + [~,values] = fileattrib(path); + if(~values.UserWrite) + checked = false; + end %% Anatomy diff --git a/guide/Params_configuration.mlapp b/guide/Params_configuration.mlapp index c0f713c..0504924 100644 Binary files a/guide/Params_configuration.mlapp and b/guide/Params_configuration.mlapp differ