Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Need help if the folder doesn't exist in the FTP location then create a folder else if exists then drop files into that folder
Please help me out
tFTPFileExists - https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/MhJ3ofNo_IPaoAWAAsxYEQ
and tRunIf trigger
This checks file exists but I am looking for file directory not file
sure? 🙂
I am using Talend 6.2 , hence it doesn't have such option
Can you guide me how to execute below commands in tSSH
cd dirname if [ ! -d "$dirname" ] then echo "File doesn't exist. Creating now" mkdir ./$dirname echo "File created" else echo "File exists" fi
I tried below but code compilation error
@uganesh wrote:
I guess error is because “” are missing.
yes, double quotes around commands missed, must be
"cd folder" or "mkdir -p folder/"+context.YEAR