diff --git a/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/ADLSSync.kt b/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/ADLSSync.kt index 3cb09f067f..75987189df 100644 --- a/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/ADLSSync.kt +++ b/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/ADLSSync.kt @@ -156,7 +156,7 @@ class ADLSSync( if (latestFileKey.isNotBlank()) { val local = File(localDirectory, latestFileKey).path downloadFrom( - latestFileKey, + File(prefix, latestFileKey).path, local, ) local diff --git a/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/GCSSync.kt b/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/GCSSync.kt index 561ff428e9..6a7dbdc75e 100644 --- a/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/GCSSync.kt +++ b/package-toolkit/runtime/src/main/kotlin/com/atlan/pkg/objectstore/GCSSync.kt @@ -104,7 +104,7 @@ class GCSSync( if (latestFileKey.isNotBlank()) { val local = File(localDirectory, latestFileKey).path downloadFrom( - latestFileKey, + File(prefix, latestFileKey).path, local, ) local