Forum Discussion

sirisha's avatar
sirisha
New Contributor
5 years ago

How to find the empty file from sftp and send to Archive folder

How to find the empty file from sftp and send to Archive folder

3 Replies

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    Hi @sirisha

    You can use Directory Browser snap to list all the files from the sftp location. For every file listed on the output, the Snap will provide the size of the file in bytes. The empty file probably will have size no bigger than 5 bytes.
    Then, you can use a filter snap to filter only those files with size no bigger than 5 bytes and write to Archive folder.

    Regards,
    Spiro Taleski

  • sirisha's avatar
    sirisha
    New Contributor

    Can we find the size of the file from the file poller snap

    • SpiroTaleski's avatar
      SpiroTaleski
      Valued Contributor

      @sirisha

      Based on the documentation, the File Poller snap will return only the full path to the searched file:

      Regards,
      Spiro Taleski