No License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Add folders to path excluding .svn

5.0 | 1 rating Rate this file 3 Downloads (last 30 days) File Size: 1.83 KB File ID: #15393 Version: 1.0

Add folders to path excluding .svn



21 Jun 2007 (Updated )

Changes to genpath to exclude the .svn to the path

| Watch this File

File Information

We use SVN for our Matlab toolbox Brainstorm. A .svn sub folder is created within every folder in the repository by SVN. When I was trying to add folders(including sub folders) to path, It will add all these .svn folders to the path. Then I found out you can simply add one line to the GENPATH function, and use
ddpath(genpath('My folder'))
to add to the path.

The line to be added in is at #48 in GENPATH function for Matlab R2006b:
 ~strcmp( dirname,'.svn') &...

Alternatively, you can replace the attached function with the default one. (Remember to make a backup copy)

MATLAB release MATLAB 7.3 (R2006b)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
18 Feb 2016 Kamil Wojcicki

Kamil Wojcicki (view profile)

Contact us