Hello!
I'm working on my first flow and decided to create something that I can actually use. I'm a Java developer and would like to synch up my source files as they are modified to Google Drive (or OneDrive for Business if Google Drive is not as well supported as OneDrive).
Some background I have several projects that I work on at different points in time. Something like 20. Each project is in its own directory and has its own source file folder. Java source files have a ".java" extension.
Before I get into specific questions I have a few general ones.
1. When a file on a hard drive is updated or created does that trigger the flow to start running?
2. Or does the flow only run at certain intervals and I have to go through all of the files that I'm interested in and see if they were updated or created?
3. Would this particular Workflow be easier to code and execute on OneDrive for Business or is using Google Drive the same?
The workflow would be something like this.
1. Using the "File System - When a file is added or modified" Detect when a file is modified (or created)
2. Condition If the file has a ".java" extension Continue, Else End.
3. Condition If File was Created in the Windows File System, copy file to the Google Drive. The tricky thing is to place it in the right directory. Meaning if I have the following directory path on my hard drive C:\Projects\ProjectX\src\Application.java. I would like it to go to the same directory path on Google drive not counting the root. Something like https://drive.google.com/drive/my-drive/Projects\ProjectX\src\Application.java. So somehow the path that the file resides in, needs to be discovered. The same logic needs to happen for the Update logic coming up below.
4. Else if the file was not just created. Condition If the File was just Updated, then copy/synch this file to Google Drive (or OneDrive for business if it is easier). Obviously I need to be able to Overwrite a file that is already there for this Condition.
I think I need help with steps/conditions 3 and 4.
1. Since the File System appears to be a multitrigger how do I determine which one it is. Create or Update?

TIA
Rudy