diff --git a/1. Grid files/error_check.m b/1. Grid files/error_check.m index 05d0129f..7c3a483d 100644 --- a/1. Grid files/error_check.m +++ b/1. Grid files/error_check.m @@ -386,7 +386,8 @@ fprintf('Renamed sources\n'); % Check file path -if ~strcmp(newfile, grid.source.file(1,:)) +folders = split(grid.source.file(1,:),'/'); +if ~strcmp(newfile, fullfile(folders{:}) ) error('bad'); end fprintf('Checked file name\n');