Microsoft Flow - Recurring Workflow To Copy Files From Local Shared Path To SharePoint Document Library

In this demo, I will create a recurring MS Flow which will run every hour to copy all the files from a local shared folder to SharePoint online document library.
 
In order to make the local path accessible to SharePoint, we need a connector which will establish a connection between the local path and SharePoint.
 
Configuration of local shared path
  1. Create a local folder in any drive on your machine. I have created folder as "Test" inside "ShareDocument".

    Local Shared Path To SharePoint Document Library

  2. Share that folder.

    Local Shared Path To SharePoint Document Library
After sharing, you will get the path as shown in the image above. Copy that path and save.
  
Configuration Of MS Flow Connector
  1. Log into your Microsoft account using your MS credentials and navigate to the Flow.

  2. First, we need to create a connector. Click on Data Gateway on the right side of MS Flow page and install.

    Local Shared Path To SharePoint Document Library

  3. After installation, click "Create Flow" from blank. > Type 'file system'.

    Local Shared Path To SharePoint Document Library

    Provide the below information in the next screen and install the gateway.

    Local Shared Path To SharePoint Document Library 
Create MS Flow
  1. Create from blank > Type Recurrence.

  2. Select New Step >  List Files in the folder.

    Local Shared Path To SharePoint Document Library

  3. Add "Apply to each" and select "Body" as output for "Apply to each".

  4. Add "Get file content using path" inside Apply to each and type Path against File Path. 

    Local Shared Path To SharePoint Document Library

  5. Add 'Create File' and provide the site address value and other field value.

    Local Shared Path To SharePoint Document Library
Now we are done with configuring the flow and we can see our local files getting copied to document library.
 
Note
I have kept only one file inside the shared local path which was copied to document library. 
 
Local Shared Path To SharePoint Document Library 
Cheers!!