Skip to content

Commit ca5fe7c

Browse files
committed
pathname II
1 parent cf1c9b8 commit ca5fe7c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lambdas/filenameprocessor/src/file_name_processor.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,10 @@ def handle_extended_attributes_file(
272272
FileStatus.PROCESSING,
273273
)
274274

275-
copy_file_outside_bucket(bucket_name, file_key, DPS_DESTINATION_BUCKET_NAME, file_key)
276-
is_file_in_bucket(DPS_DESTINATION_BUCKET_NAME, file_key)
277-
delete_file(DPS_DESTINATION_BUCKET_NAME, file_key)
275+
dest_file_key = f"archive/{file_key}"
276+
copy_file_outside_bucket(bucket_name, file_key, DPS_DESTINATION_BUCKET_NAME, dest_file_key)
277+
is_file_in_bucket(DPS_DESTINATION_BUCKET_NAME, dest_file_key)
278+
delete_file(DPS_DESTINATION_BUCKET_NAME, dest_file_key)
278279

279280
upsert_audit_table(
280281
message_id,

0 commit comments

Comments
 (0)