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.  Get files which have data using Directory list node

    Employee
    Posted 09-13-2012 06:57

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

    Originally posted by: amiyabasak

    Hi,

    I have a folder with list of files and some of them is zero byte file. I am using Directory list node to get file name and then parsing then. Now My parser is giving error because some of files with in that folder have zero byte files. I want to eliminate those 0 byte files when taking the file list as ecause I am using the parser just after the directory node.

    Is is possible to use directory node itself to eliminate zero size file or if it can be possible to use filter or other node to do this?

    Regards,
    Amiya Basak


  • 2.  RE: Get files which have data using Directory list node

    Employee
    Posted 09-13-2012 09:53

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

    Originally posted by: stonysmith

    Add a filter:

    fs=stat(FileName)
    filesize=fs[0]
    emit *
    where filesize>0