Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I tried using tS3List-->tS3Get components
in tS3list I gave the bucket name and the key prefix. Under this folder, there are multiple files
Key prefix as below
/folder/export=2019/
in tS3Get component for Key i gave as below
((String)globalMap.get("tS3List_1_CURRENT_KEY"))
File: as below
/folder/work/
The problem here is if I include as File as below, it creates the folder inside from the current_key
"/folder/work/" + ((String)globalMap.get("tS3List_1_CURRENT_KEY"))
it creates as below
/folder/work/folder/export=2019/a.json
my expectation is as below
/folder/work/a.json
You could do a string replace to remove the key prefix text:
String keyPrefix = "/folder/export=2019/";
"/folder/work/" + ((String)globalMap.get("tS3List_1_CURRENT_KEY")).replaceAll(keyPrefix,"");
You could do a string replace to remove the key prefix text:
String keyPrefix = "/folder/export=2019/";
"/folder/work/" + ((String)globalMap.get("tS3List_1_CURRENT_KEY")).replaceAll(keyPrefix,"");