(File path)
| 1034 | } |
| 1035 | |
| 1036 | static public boolean deleteDirectory(File path) { |
| 1037 | if(path.exists()) { |
| 1038 | File[] files = path.listFiles(); |
| 1039 | for(int i=0; i<files.length; i++) { |
| 1040 | if(files[i].isDirectory()) { |
| 1041 | deleteDirectory(files[i]); |
| 1042 | } |
| 1043 | else { |
| 1044 | files[i].delete(); |
| 1045 | } |
| 1046 | } |
| 1047 | } |
| 1048 | return(path.delete()); |
| 1049 | } |
| 1050 | |
| 1051 | /** |
| 1052 | * @param pigContext |
no test coverage detected