Mule File Connector Example


In this example, we will see how to use File connector in a Mule flow to move a file, on the local file system, from an input directory to an output directory.

Mule File Connector Example

The flow allows to move files from C:\files\input  to  C:\files\output  and save a backup file in C:\files\backup.

We also have a Logger to display the name of the moved file.


1. Technologies used

  • Anypoint Studio
  • JDK 1.7


2. Mule XML Editor

The following is the flow in XML representation :


3. The video tutorial

For how to build the flow, you can see the following video :


Download source code

  • Carlos Martinez

    Excellent example…

  • Aadi bhandwalkar

    could you please share your thoughts on the pollng connector.

    Implementation is — if we have any change in column value in database need to absorb it by polling or someother mechanism and then call some defined workflow.