jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Gaul <notificati...@github.com>
Subject Re: [jclouds/jclouds] Use temporary file for Swift test inputs (#1035)
Date Thu, 10 Nov 2016 02:19:06 GMT
andrewgaul commented on this pull request.



> @@ -679,7 +679,7 @@ public void downloadBlob(String container, String name, File destination,
Execut
 
       ListeningExecutorService listeningExecutor = MoreExecutors.listeningDecorator(executor);
       RandomAccessFile raf = null;
-      File tempFile = new File(destination.getName() + "." + UUID.randomUUID());
+      File tempFile = new File(destination + "." + UUID.randomUUID());

Given "/tmp/foo" `getName` returns "foo", ensuring the file will be relative to wherever the
user launched the jclouds application.  With this change jclouds will create the temporary
file in the same directory as the user specified.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/1035
Mime
View raw message