Loop zip-file enteries and Process documents from files

Ayoube
Ayoube New Altair Community Member
edited November 5 in Community Q&A
I managed to create a process that works fine for my assignment. The problem is I need to process the content of a local directory of zipped files. I tried different loops operators but they didn't work for me. My question is how to loop over a directory of zipped files and connect it to process Documents from files operator? Note that the zipped files can contain zero or more directories.
Thanks

Best Answer

  • varunm1
    varunm1 New Altair Community Member
    Answer ✓
    Hello @Ayoube

    Try Loop files operator (provide a path to directory), inside that place Loop Zip-File Entries operator and inside that you can place your read process. This is like a loop inside the loop. 

Answers

  • varunm1
    varunm1 New Altair Community Member
    Answer ✓
    Hello @Ayoube

    Try Loop files operator (provide a path to directory), inside that place Loop Zip-File Entries operator and inside that you can place your read process. This is like a loop inside the loop. 
  • Ayoube
    Ayoube New Altair Community Member
    Hi @varunm1 I still have a problem. Is there anyway to convert fileObject to wordList?
  • Telcontar120
    Telcontar120 New Altair Community Member
    Try posting your process to see where it is going wrong.  What @varunm1 has described should work just fine.
  • Ayoube
    Ayoube New Altair Community Member
    Hi @Telcontar120 . I realized I made a mistake following @varunm1 suggestion. It's working now. thx