diff options
Diffstat (limited to 'qadevOOo/runner/helper/FileTools.java')
-rw-r--r-- | qadevOOo/runner/helper/FileTools.java | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/qadevOOo/runner/helper/FileTools.java b/qadevOOo/runner/helper/FileTools.java index 8ce58e29f53a..8a859183ebf6 100644 --- a/qadevOOo/runner/helper/FileTools.java +++ b/qadevOOo/runner/helper/FileTools.java @@ -102,34 +102,10 @@ public class FileTools { */ public static boolean deleteDir(File dir) { - // if (! cleanDir(dir)) return false; - // The directory is now empty so delete it - // return dir.delete(); return cleanDir(dir); } - /** - * Deletes all files and subdirectories under dir. - * Returns true if all deletions were successful. - * If a deletion fails, the method continues to delete rest of the files. - * @return Returns true if all deletions were successful, else false. - * @param dir the directory to clean from content - */ - // public static boolean cleanDir(File dir){ - - // boolean success = true; - // if (dir.isDirectory()){ - // File [] theFiles = dir.listFiles(); - - // if (theFiles.length != 0 ) - // for (int i = 0; i < theFiles.length; i++){ - // success &= theFiles[i].delete(); - // } - // } - // return success; - // } - public static boolean cleanDir(File dir) { if (dir.isDirectory()) |