Skip to content

Commit

Permalink
Fix basename not found
Browse files Browse the repository at this point in the history
It was using freesurfer function.
  • Loading branch information
thomas-vincent authored May 8, 2018
1 parent 74c2e78 commit 7d8005f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bst_plugin/nst_download.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@
end
copyfile(tmp_download, dest_fn);
elseif ~isempty(strfind(source_fn, 'http'))
errMsg = gui_brainstorm('DownloadFile', source_fn, dest_fn, basename(dest_fn));
[root, basename_fn, ext] = fileparts(dest_fn);
errMsg = gui_brainstorm('DownloadFile', source_fn, dest_fn, basename_fn);
% Error message
if ~isempty(errMsg)
errMsg = ['Download data failed from:' 10 source_fn];
Expand Down

0 comments on commit 7d8005f

Please sign in to comment.