Github user manishgupta88 commented on a diff in the pull request:

    https://github.com/apache/carbondata/pull/2868#discussion_r229578811
  
    --- Diff: 
core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java ---
    @@ -300,40 +300,27 @@ public static void deleteFoldersAndFiles(final 
File... path)
     
           @Override public Void run() throws Exception {
             for (int i = 0; i < path.length; i++) {
    -          deleteRecursive(path[i]);
    +          CarbonFile carbonFile = 
FileFactory.getCarbonFile(path[i].getAbsolutePath());
    +          boolean delete = carbonFile.delete();
    +          if (!delete) {
    +            throw new IOException("Error while deleting the folders and 
files");
    --- End diff --
    
    ok


---

Reply via email to