Skip to content

Commit

Permalink
add missing files
Browse files Browse the repository at this point in the history
  • Loading branch information
roman10 committed Dec 5, 2011
1 parent 9a9a8e6 commit c28f436
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/feipeng/andzop/utils/FileUtilsStatic.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package feipeng.andzop.utils;

import java.io.File;

public class FileUtilsStatic {
public static void deleteAllDepFiles(String dir) {
try {
File[] tfiles = new File(dir).listFiles();
for (File aFile : tfiles) {
if (aFile.getName().endsWith(".txt")) {
aFile.delete();
}
}
} catch (Exception e) {
//dir not exists or cannot delete the file
e.printStackTrace();
}
}
}

0 comments on commit c28f436

Please sign in to comment.