Ignore:
Timestamp:
01/12/20 23:00:36 (5 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/pr_download.m

    r137 r153  
    7575function [a,new] = pr_download(url,datname,varargin)
    7676
     77%% make sur there is a data subdir
     78persistent DATADIREXISTS
     79if isempty(DATADIREXISTS)
     80  datasubdir = fullfile(fileparts(which(mfilename)),'data');
     81  if exist(datasubdir,'dir') ~= 7
     82    mkdir(datasubdir);
     83  end
     84  DATADIREXISTS = true;
     85end
     86
     87%%
    7788if nargin >= 3
    7889  % this can be removed when all mfiles in prdatasets call the new version
Note: See TracChangeset for help on using the changeset viewer.