LAE

Welcome to the LAE community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Discussions

Members

Resources

Events

 View Only
  • 1.  Import Compressed Archives

    Employee
    Posted 10-09-2014 10:22

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: Leaner

    Hello,

    We have a large amount of zip files containing JSON files that I need to import into BRE. I have a working Directory List node feeding a JSON node.

    I have been reading this post from 2011, and was wondering if there is a better way of decompressing files automatically into BRE?

    Thanks,
    Pablo


  • 2.  RE: Import Compressed Archives

    Employee
    Posted 10-10-2014 06:59

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: lnason

    Hi Pablo - The attached graph has an example of a Python node I have that will unzip a set of files passed in from a DirectoryList. I haven't used or tested this a lot, but in limited testing it does work for me. In order to use the node, you need to pass in the path and filename in two different parameters, which is shown in the attachment. There's probably a more elegant way to implement this....

    Anyhow, let me know if this is what you were looking for.

    Luke
    Unzip Example.brg


  • 3.  RE: Import Compressed Archives

    Employee
    Posted 04-27-2015 18:41

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: felfajar

    I am just having issues with the file location as is not finding the zip file, does the zip file need to be in a specific place?

    Thanks in advance


  • 4.  RE: Import Compressed Archives

    Employee
    Posted 04-28-2015 06:36

    Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.

    Originally posted by: lnason

    Yes - Depending on how you are using the node it needs to be in:

    For a Single File: It needs to be in the directory that is populated in the "DirectoryName" parameter
    For Multiple Files: It needs to be in the directory specified in the input column name that you populate in the DirectoryNameExpr parameter

    If you want to send along a little more information about how you have the node configured and the directory where it currently it resides on your server, I may be able to provide some more useful guidance.