Skip to content

Commit

Permalink
Merge pull request #154 from jenkinsci/tempfile_name
Browse files Browse the repository at this point in the history
Change temp file name ruling
  • Loading branch information
gavinfish committed Jul 11, 2019
2 parents 61ef8b5 + 62845c6 commit 14489ad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,8 @@ public UploadResult call() throws Exception {
ImmutablePair<Integer, String> response;
long startTime = System.currentTimeMillis();
if (length > BLOCK_SIZE) {
Path tempDirectory = Files.createTempDirectory(uploadObject.getName());
String tempDirectoryName = uploadObject.getName().replace('/', '.');
Path tempDirectory = Files.createTempDirectory(tempDirectoryName);

try (RandomAccessFile raf = new RandomAccessFile(file, "r")) {
int blockCount = (int) (length / BLOCK_SIZE);
Expand Down

0 comments on commit 14489ad

Please sign in to comment.