frankgh commented on code in PR #51:
URL: https://github.com/apache/cassandra-sidecar/pull/51#discussion_r1278142274


##########
src/test/integration/org/apache/cassandra/sidecar/testing/CassandraSidecarTestContext.java:
##########
@@ -87,8 +122,13 @@ private InstancesConfig 
buildInstancesConfig(CassandraVersionProvider versionPro
             // Use the parent of the first data directory as the staging 
directory
             Path dataDirParentPath = Paths.get(dataDirectories[0]).getParent();
             assertThat(dataDirParentPath).isNotNull()
-                                         .exists();
-            String uploadsStagingDirectory = 
dataDirParentPath.resolve("staging").toFile().getAbsolutePath();
+                      .exists();
+            Path stagingPath = dataDirParentPath.resolve("staging");
+            String uploadsStagingDirectory = 
stagingPath.toFile().getAbsolutePath();
+            if (!Files.exists(stagingPath))
+            {
+                Files.createDirectory(stagingPath);
+            }

Review Comment:
   similar to `mkdir -p ...`
   ```suggestion
               Files.createDirectories(stagingPath);
   ```



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

Reply via email to