You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pinot.apache.org by GitBox <gi...@apache.org> on 2022/02/25 19:45:56 UTC

[GitHub] [pinot] mcvsubbu commented on a change in pull request #8200: add copy recursive API to pinotFS

mcvsubbu commented on a change in pull request #8200:
URL: https://github.com/apache/pinot/pull/8200#discussion_r815054322



##########
File path: pinot-spi/src/main/java/org/apache/pinot/spi/filesystem/LocalPinotFS.java
##########
@@ -182,7 +182,7 @@ private static void copy(File srcFile, File dstFile, boolean recursive)
         FileUtils.copyDirectory(srcFile, dstFile);
       } else {
         // Throws Exception on failure
-        throw new IOException(srcFile.getAbsolutePath() + " is a directory");
+        throw new IOException(srcFile.getAbsolutePath() + " is a directory and recursive copy is not enabled.");

Review comment:
       Thanks for clarifying the error message




-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pinot.apache.org
For additional commands, e-mail: commits-help@pinot.apache.org