anmolanmol1234 commented on code in PR #7272:
URL: https://github.com/apache/hadoop/pull/7272#discussion_r1908456938
##########
hadoop-tools/hadoop-azure/src/test/java/org/apache/hadoop/fs/azurebfs/ITestAbfsNetworkStatistics.java:
##########
@@ -47,6 +50,21 @@ public class ITestAbfsNetworkStatistics extends
AbstractAbfsIntegrationTest {
public ITestAbfsNetworkStatistics() throws Exception {
}
+ /**
+ * Counts the number of directories in the given path.
+ *
+ * @param path The path to be checked.
+ * @return The number of directories in the path.
+ */
+ private int countDirectory(String path) {
+ int index = path.indexOf(getFileSystemName());
+ if (index == -1) {
+ return 0;
+ }
+ return (int) path.substring(index + getFileSystemName().length()).chars()
+ .filter(ch -> ch == '/').count();
Review Comment:
taken
--
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]