Thanks for your quick response.
I need only to log the filename, path and modify date in a table.
Background: I receive digital card request in pdf format. The name of the file is a barcode containing a prefix, the card number and a checksum. I need to extract the card number, look up the contact_Id in a Microsoft Dynamics CRM. If the contact_Id is found I move the file to a specific directory, if move to another. Finally I update a custom CRM entity with the file name, path, modify date and contact_Id (only for the files that matched a contact).
I made a design that works, but I would be nice if I can improve the process.