Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
On my ftp location, I have folders: Alpha, Beta, Chroma, Delta which in turn have folders, Alpha1, Alpha2, Alpha3; Beta1, Beta2, Beta3; Chroma1, Chroma2, Chroma3; Delta1, Delta2, Delta3 respectively. Each of these folders have .csv files with names, Data_date.csv (ex. Data_01_01_2018.csv). The file names are common along folders. I have some of these files on my in folders by the same names as FTP location. I need to compare both, get a list of files that are not present and pick those files to pc storage. Can someone suggest me how to do this?
In future, I also need to have it so that there are no files on PC but only the list of files that were before and whatever filename isn't on the filelist, has to get picked.
Anyone here to help?
Thanks in advance.
@fdenis, how about the folders? This approach works if there's one folder. Not many.
@fdenis, good file mask? They are csv files and I'm using "*.csv" as filemask. What is it I'm missing?
@fdenis, not working. The file names are same across folders. So, that's a problem.
I'm trying to use another approach.
tFileInputDelimited (with names of folders - Alpha, Beta, Chroma, Delta) -> tFlowtoIterate -> tLoop -> tJava
(converting folder names to a context output)-> tFileInputDelimited (with names of subfolders)-> tFlowtoIterate -> tLoop -> tJava (converting subfolder names to context output) -> tFTPFileList -> tIteratetoFlow -> tMap (Connected to a tFileList and tIteratetoFlow) -> tFlowtoIterate -> tFTPGet
I'm giving the names of folders and subfolders and using a loop element to run it. But it doesn't work. Can anyone help?
@TRF, could you help may be?