File Lock in MULE 4
You can set lock parameter to true so that other processes can not access the same file while it is being read. If the file is already lock and some other process trying to lock it the operation will throws File Lock Error
Lock will automatically released when the file is fully read or the mule flow that lock the file ends.
To set the lock flag as true you can set this on Advanced tab on connector configuration
By default it is false

Same feature is applicable in case of write operation as well, in case of write locks release after the write operation complete

Thank you for taking out time to read the above post. Hope you found it useful. In case of any questions, feel free to comment below. Also, if you are keen on knowing about a specific topic, happy to explore your recommendations as well.
For any latest updates or posts on our website, you can follow us on LinkedIn. Look forward to connecting with you there.