matlab.project.isUnderProjectRoot
Syntax
Description
returns tf
= matlab.project.isUnderProjectRoot(fileOrFolder
)1
(true
) if the input file or folder is under
a project root folder and 0
(false
) otherwise.
matlab.project.isUnderProjectRoot
returns 0
(false
) if fileOrFolder
is a project root
folder.
For large projects, checking whether a file is a project file can be a slow operation.
For large projects, use matlab.project.isUnderProjectRoot
to quickly
check whether a file is under a project root.
[
returns the location of the first project root it finds. If the input file or folder is not
under a project root, tf
,projectRoot
] = matlab.project.isUnderProjectRoot(fileOrFolder
)projectRoot
is an empty string.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023a