Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
How can I get a list of all directories on a sFTP server? (I then have to delete or put a file in each dir)
My guess was a brute force: tFTPFileList with "*", "*/*", "*/*/*" Files search (ugly -- and I still don't know which of the entries are directories)
My original quiestion ^^^
I've now got a job that tries to build a directory tree. My question is where/how to connect the setWhileCondition tJava component. This java checks to see if any new subdirectories were found (when listing the previous set of found directories).
The initial "dirsToCheck" file is "/;" . That generates two subdirectories, then the "setWhileCondition" tJava will move the "newDirsToCheck" file to "dirsToCheck" and set the boolean so the while loop keeps executing.
Since there are a couple of iterations in the job, I'm not sure where to place this tJava.
jji
Hello,
When you use the component tFTPFileList with the mask "*.*", the component lists all files with extension, but no directory.
Are you trying to list only the folders? If so, here is a related topic about: https://community.talend.com/s/question/0D53p00007vCjRfCAK/tftpfilelist-how-to-list-only-the-directo...
Feel free to let us know if it helps.
Best regards
Sabrina