I think that using the full path option here might save you some trouble. it might even make part (or the whole subfunction) unnecessary. ``` fileList = spm_select('FPlist', sequencePath, fileExtention); ``` _Originally posted by @Remi-Gau in https://github.com/cpp-lln-lab/CPP_sourceMRI/pull/2#r560032192_