cancel
Showing results for 
Search instead for 
Did you mean: 

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

sirisha
New Contributor

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

3 REPLIES 3

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
New Contributor

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

@sirisha

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

image

Regards,
Spiro Taleski