swaminathanmanish commented on code in PR #14860:
URL: https://github.com/apache/pinot/pull/14860#discussion_r1925053138
##########
pinot-plugins/pinot-file-system/pinot-adls/src/main/java/org/apache/pinot/plugin/filesystem/ADLSGen2PinotFS.java:
##########
@@ -480,6 +480,15 @@ private static FileMetadata getFileMetadata(PathItem file)
{
public void copyToLocalFile(URI srcUri, File dstFile)
throws Exception {
LOGGER.debug("copyToLocalFile is called with srcUri='{}', dstFile='{}'",
srcUri, dstFile);
+
Review Comment:
May be you can just do this which I see in other PinotFs implementations -
checkState(!dstFile.isDirectory(), "File '%s' must not be a directory",
dstFile);
FileUtils.forceMkdir(dstFile.getParentFile());
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]