view +mpm/subpaths.m @ 4:38c29c9ba07f

Add function for showing the state
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 10 Sep 2018 15:21:49 +0200
parents a9795512f33a
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