genpath_exclude

버전 1.4.0.0 (2.22 KB) 작성자: Jesse Hopkins
Executes like genpath, but can ignore specified directories.
다운로드 수: 2.4K
업데이트 날짜: 2009/10/27

라이선스 보기

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 "#"

인용 양식

Jesse Hopkins (2026). genpath_exclude (https://kr.mathworks.com/matlabcentral/fileexchange/22209-genpath_exclude), MATLAB Central File Exchange. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2007b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 File Operations에 대해 자세히 알아보기
태그 태그 추가
도움

도움 받은 파일: Recursive addpath

도움 준 파일: genpath2, deploypcode(source_dir, target_dir, varargin)

버전 게시됨 릴리스 정보
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