Results 1 to 2 of 2

Thread: Get files which have data using Directory list node

  1. #1
    New Contributor
    Join Date
    Nov 2011
    Location
    Kolkata,India
    Posts
    3

    Question Get files which have data using Directory list node

    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. #2
    Lavastorm Employee stonysmith's Avatar
    Join Date
    Nov 2006
    Location
    Grapevine Tx
    Posts
    799

    Default

    Add a filter:

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •