Vous suivez désormais cette soumission
- Les mises à jour seront visibles dans votre flux de contenu suivi
- Selon vos préférences en matière de communication il est possible que vous receviez des e-mails
Executes like genpath, but can ignore directories. Useful to add a directory hierarchy to your path, but ignore CM directories such as "CVS" or ".svn"
Directories may be excluded using regular-expressions as well.
Tested on windows only, but should work on any platform.
Example usage:
genpath_exclude('C:\myDir',{'CVS'}) %<--- simple usage to ignore CVS direcotries
genpath_exclude('C:\myDir',{'\.svn'}) %<--- simple usage to ignore .svn (note that "." must be escaped for proper handling in the regexp)
genpath_exclude('C:\myDir',{'CVS','#.*'}) %<----more advanced usage to ignore CVS directories and any directory starting with "#"
Citation pour cette source
Jesse Hopkins (2026). genpath_exclude (https://fr.mathworks.com/matlabcentral/fileexchange/22209-genpath_exclude), MATLAB Central File Exchange. Extrait(e) le .
Remerciements
Inspiré par : Recursive addpath
A inspiré : genpath2, deploypcode(source_dir, target_dir, varargin)
Informations générales
- Version 1.4.0.0 (2,22 ko)
Compatibilité avec les versions de MATLAB
- Compatible avec toutes les versions
Plateformes compatibles
- Windows
- macOS
- Linux
| Version | Publié le | Notes de version | Action |
|---|---|---|---|
| 1.4.0.0 | fixed regexp handling. wrapped each expression in ^ and $ chars. Added more help comments |
||
| 1.3.0.0 | Updated description. |
||
| 1.2.0.0 | Made input more robust so that if user enters a string as 'excudeDir' rather than a cell array of strings this function will still work. |
||
| 1.1.0.0 | Updated file so that it is a modified version of genpath, rather than post-processing the output of genpath. |
||
| 1.0.0.0 |
