From c7d14b0fd04f6eceaeb11fc20b54b5b8d4730c1b Mon Sep 17 00:00:00 2001 From: Sydney Munro Date: Thu, 18 Jan 2024 09:49:11 -0800 Subject: [PATCH] add in to the directory where the part files will be created --- .../storage/ParallelCompositeUploadBlobWriteSessionConfig.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java index a5f061e9b3..b93ecd14a8 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java +++ b/google-cloud-storage/src/main/java/com/google/cloud/storage/ParallelCompositeUploadBlobWriteSessionConfig.java @@ -527,7 +527,7 @@ public static PartNamingStrategy prefix(String prefixPattern) { *

General format is * *


-     *   {objectName}/{randomKeyDigest};{objectInfoDigest};{partIndex}.part
+     *   {objectName}-parts/{randomKeyDigest};{objectInfoDigest};{partIndex}.part
      * 
* *

{@code {objectInfoDigest}} will be fixed for an individual {@link BlobWriteSession}. @@ -594,6 +594,7 @@ protected String fmtFields(String randomKey, String ultimateObjectName, String p String nameDigest = B64.encodeToString(hashCode.asBytes()); return prefix + ultimateObjectName + + "-parts" + "/" + randomKey + FIELD_SEPARATOR