Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 Karuetl
		
			Karuetl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 vapukov
		
			vapukov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		tFTPFileExists - https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/MhJ3ofNo_IPaoAWAAsxYEQ
and tRunIf trigger
 Karuetl
		
			Karuetl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		This checks file exists but I am looking for file directory not file
 vapukov
		
			vapukov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		sure? 🙂
 Karuetl
		
			Karuetl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I am using Talend 6.2 , hence it doesn't have such option
 Karuetl
		
			Karuetl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		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
 akumar2301
		
			akumar2301
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 Karuetl
		
			Karuetl
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		I tried below but code compilation error
 akumar2301
		
			akumar2301
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 vapukov
		
			vapukov
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		
@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
