mirror of https://github.com/dspinellis/UMLGraph
Skip CVS directories during recursive comparison
This commit is contained in:
parent
1a066ccff8
commit
e63dfd9fa8
|
|
@ -115,11 +115,11 @@ public class TestUtils {
|
|||
|
||||
/**
|
||||
* Deletes the content of the folder, eventually in a recursive way (but
|
||||
* avoids deleting eventual .cvsignore files)
|
||||
* avoids deleting eventual .cvsignore files and CVS folders)
|
||||
*/
|
||||
public static void cleanFolder(File folder, boolean recurse) {
|
||||
for (File f : folder.listFiles()) {
|
||||
if (f.isDirectory()) {
|
||||
if (f.isDirectory() && !f.getName().equals("CVS")) {
|
||||
if (recurse) {
|
||||
cleanFolder(f, true);
|
||||
if (f.list().length == 0)
|
||||
|
|
|
|||
|
|
@ -115,11 +115,11 @@ public class TestUtils {
|
|||
|
||||
/**
|
||||
* Deletes the content of the folder, eventually in a recursive way (but
|
||||
* avoids deleting eventual .cvsignore files)
|
||||
* avoids deleting eventual .cvsignore files and CVS folders)
|
||||
*/
|
||||
public static void cleanFolder(File folder, boolean recurse) {
|
||||
for (File f : folder.listFiles()) {
|
||||
if (f.isDirectory()) {
|
||||
if (f.isDirectory() && !f.getName().equals("CVS")) {
|
||||
if (recurse) {
|
||||
cleanFolder(f, true);
|
||||
if (f.list().length == 0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue