diff +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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/+mpm/subpaths.m	Mon Sep 10 14:59:21 2018 +0200
@@ -0,0 +1,9 @@
+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