title: Java: how to copy a directory but exclude some directories deep inside main directory
body: <p>Using java, I want to copy whole directory excluding some sub-directories (and all files inside those sub-directories) down file path. How can I do that? I've seen several such questions on SO but using Perl/ANT etc but not using Java.</p>