Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

copy folder structure without .svn folders

Could someone help me with the script for copying all folders from project structure without .svn folders ? Thanks for any help

like image 260
gruber Avatar asked May 13 '11 14:05

gruber


2 Answers

You simply need exclude do you?

copy-item $source -destination $dest -exclude *.svn -recurse
like image 174
Emiliano Poggi Avatar answered Oct 18 '22 19:10

Emiliano Poggi


that doesnt seem to work (at least on my machines). See : Exclude list in PowerShell Copy-Item does not appear to be working for a solution that works for me (swap out the exlcudes obviously)

like image 32
RhysC Avatar answered Oct 18 '22 18:10

RhysC