From 348e9606bd07555b572d2583395a3b9199113519 Mon Sep 17 00:00:00 2001 From: Bryan Roessler Date: Wed, 31 Jul 2024 20:58:15 -0400 Subject: [PATCH] Convert dir object to char --- workflow/apps/matlab/easy/EASYconsole.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workflow/apps/matlab/easy/EASYconsole.m b/workflow/apps/matlab/easy/EASYconsole.m index b7aa375d..e0cfdf5d 100644 --- a/workflow/apps/matlab/easy/EASYconsole.m +++ b/workflow/apps/matlab/easy/EASYconsole.m @@ -71,17 +71,17 @@ function varargout = EASYconsole(varargin) fullfile(parentDir, '..', '..', 'templates', 'scans-demo') }; for i=1:length(dirsToScan) - d=dirsToScan(i); + d=fullfile(dirsToScan(i)); if exist(char(d), 'dir') subDirs=dir(d); pattern='^\d{6}_.*_.*'; matchedDirs={dirs(regexp(subDirs.name, pattern)).name}; if ~isempty(matchedDirs) - fprintf('Found a non-empty scans directory in our list: %s\n', char(d)); + fprintf('Found a non-empty scans directory in our list: %s\n', d); fprintf('Setting scansDir to %s\n', char(d)); scansDir=fullfile(d); end - fprintf('Scanning inside %s for a project directory\n', char(d)); + fprintf('Scanning inside %s for a project directory\n', d); sortedMatchedDirs=sortrows(matchedDirs); project=sortedMatchedDirs{0}; % select the latest dir (by date prefix) fprintf('Selected latest project directory %s\n', char(project));