Skip to content

Commit

Permalink
fix: Update TransferManagerUtils#createBlobName to only use the file …
Browse files Browse the repository at this point in the history
…name instead of the full file path (googleapis#2573)
  • Loading branch information
chalmagr authored and Marquez Grabia, Christian Alejandro committed Aug 20, 2024
1 parent 7050046 commit ab957a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ private TransferManagerUtils() {}

static String createBlobName(ParallelUploadConfig config, Path file) {
if (config.getPrefix().isEmpty()) {
return file.toString();
return file.getFileName().toString();
} else {
return config.getPrefix().concat(file.toString());
return config.getPrefix().concat(file.getFileName().toString());
}
}

Expand Down

0 comments on commit ab957a8

Please sign in to comment.