mladjan-gadzic commented on code in PR #5124:
URL: https://github.com/apache/ozone/pull/5124#discussion_r1309400227
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java:
##########
@@ -322,6 +326,16 @@ public Response put(
}
}
+ private static boolean hasTrailingSlash(String keyPath) {
+ return keyPath.charAt(keyPath.length() - 1) == '/';
+ }
Review Comment:
Done.
##########
hadoop-ozone/s3gateway/src/main/java/org/apache/hadoop/ozone/s3/endpoint/ObjectEndpoint.java:
##########
@@ -322,6 +326,16 @@ public Response put(
}
}
+ private static boolean hasTrailingSlash(String keyPath) {
+ return keyPath.charAt(keyPath.length() - 1) == '/';
+ }
+
+ private void createDirectory(String volumeName,
+ String bucketName, String keyPath) throws IOException {
+ getClientProtocol()
+ .createDirectory(volumeName, bucketName, keyPath);
+ }
Review Comment:
Done.
--
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]