
Sort on file size using script expression
This flow uses a script expression to move files in the "Bigger than 5 MB" or in the "Smaller than 5 MB" folder.
This flow is compatible with:PowerSWITCH.
Information

The following Script Expression is defined on both connections in this flow:
job.getByteCount() > (1024*1024*5);
On the connection to the "Bigger than 5 MB" folder, this connection is set in the "Include these files" property. This means that all files bigger than 5 MB are allowed to go through the connection.
This same script expression is set in the "Exclude these files" property for the other connection. The result is that only files smaller than 5 MB are allowed through this connection.
Using this flow
- Download the flow and save it on your computer: download flow
- Launch PowerSWITCH
- Use the “Flow > Import…” menu item
- In the dialog that is shown, select the flow file you just saved
The flow now appears in the flow list. You can now examine or customize it to your needs.
