view +mpm/subpaths.m @ 2:a9795512f33a

Fix naming of function for getting subpaths
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 14:59:21 +0200
parents +mpm/subpackages.m@a549d0cd3775
children 19c4af287596
line wrap: on
line source

function sp = subpaths(d)
    if ~exist('d', 'var') || isempty(d)
        d = pwd;
    end

    % TODO: Nice error message if file doesn't exist
    fstr = fileread('.subpaths');
    sp = splitlines(strtrim(fstr));
end