Copy all files and folders excluding subversion files and folders on OS X
Fresh3 days ago
Mar 15, 202626679 viewsConfidence Score0%
0%
Problem
I'm trying to copy all files and folders from one directory to another, but exclude certain files. Specifically, I want to exclude subversion files and folders. However, I'd like a general yet concise solution. I imagine I'll find the need to exclude several types of files in the near future. For e…
Error Output
find ./sourcedirectory -not \( -name .svn -a -prune \)
| xargs -IFILES cp -R FILES ./destinationdirectoryUnverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Copy all files and folders excluding subversion files and folders on OS X
Low Risk
(Edited after re-reading the question. Questioner says rsync is not installed) A possible problem with your find/xargs solution is spaces in the filenames. To get around that, tell find and xargs to use a null character (ASCII 0) to separate the fou…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix