Skip to content

Commit

Permalink
Checking properties
Browse files Browse the repository at this point in the history
  • Loading branch information
arioskyag committed Oct 20, 2023
1 parent 79e1e3b commit 81dc27d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions cfs_properties/functions/cfs_check_properties.m
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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

Expand Down
Binary file modified guide/Params_configuration.mlapp
Binary file not shown.

0 comments on commit 81dc27d

Please sign in to comment.