Main Content

removePath

Remove folder from project path

Description

removePath(proj,folderspath) removes folders from the current project path.

example

Examples

collapse all

Open the Times Table App project. Use currentProject to create a project object from the currently loaded project.

openExample("matlab/TimesTableProjectExample")
proj = currentProject;

Create a new folder.

 folderpath = fullfile(proj.RootFolder,"folder");
 mkdir(folderpath);

Add this new folder to the project path.

addPath(proj,folderpath);

Remove the new folder from the project path.

removePath(proj,folderpath)

Input Arguments

collapse all

Project, specified as a matlab.project.Project object. Use currentProject to create a project object from the currently loaded project.

Path of the folders to remove from the project path, specified as a string array or cell array of character vectors.

Version History

Introduced in R2019a

expand all