One of the Process Examples, distributed on the portal alongside the mandatory Process Templates, is for files - and it includes examples of doing just what Bastiaan describes.
If you have not done so already, I can recommend importing all the Process Examples and familiarising yourself with the logic contained within them.