Mercurial > repos > public > matlab_path_manager
comparison +mpm/MatlabPathManager.m @ 35:3a28f6de13c2
Add function to test if a folder is project
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 02 Nov 2018 13:10:57 +0100 |
parents | cbeef8175d59 |
children | 16d56bf04117 |
comparison
equal
deleted
inserted
replaced
34:78c448b5bdc7 | 35:3a28f6de13c2 |
---|---|
37 | 37 |
38 rmpath(p); | 38 rmpath(p); |
39 savepath() % before save state to make sure saved paths are always present in the state | 39 savepath() % before save state to make sure saved paths are always present in the state |
40 state.subpaths.remove(p); | 40 state.subpaths.remove(p); |
41 state.saveState(); | 41 state.saveState(); |
42 end | |
43 | |
44 function b = isProject(obj, projectFolder) | |
45 b = exist(fullfile(projectFolder, obj.projectFileName), 'file'); | |
42 end | 46 end |
43 | 47 |
44 % Read project file in a folder and return cell array of all subpaths | 48 % Read project file in a folder and return cell array of all subpaths |
45 function sp = projectSubpaths(obj, projectFolder) | 49 function sp = projectSubpaths(obj, projectFolder) |
46 try | 50 try |