Login  Register

[GitHub] [carbondata] Indhumathi27 commented on a change in pull request #4051: [CARBONDATA-4081] Fix multiple issues with clean files command

Posted by GitBox on Dec 16, 2020; 7:17am
URL: http://apache-carbondata-dev-mailing-list-archive.168.s1.nabble.com/GitHub-carbondata-vikramahuja1001-opened-a-new-pull-request-4051-WIP-Only-consider-segment-files-fors-tp104620p104791.html


Indhumathi27 commented on a change in pull request #4051:
URL: https://github.com/apache/carbondata/pull/4051#discussion_r544064420



##########
File path: core/src/main/java/org/apache/carbondata/core/util/TrashUtil.java
##########
@@ -157,11 +157,12 @@ public static void deleteExpiredDataFromTrash(String tablePath) {
     // Deleting the timestamp based subdirectories in the trashfolder by the given timestamp.
     try {
       if (FileFactory.isFileExist(trashPath)) {

Review comment:
       ```suggestion
         CarbonFile trashFile = FileFactory.getCarbonFile(trashPath);
         if (trashFile.exists()) {
           CarbonFile[] timestampFolderList = trashFile.listFiles();
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[hidden email]