GoogleDrive > FTP

All right guys? I’m new here and I’m using Google Translate.

I need to monitor changes in a Google Drive folder and when there are changes, send them to an FTP.

I configured the credentials, I can see the modifications, but I can’t find the file to make the UP.

Can anyone tell me which parameter to use? Or can you direct me to a knowledge base?

{
  "nodes": [
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": "1_pGDPG8OX_OlgGAESRLZTKciR6Fa6lGY",
        "event": "folderUpdated"
      },
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "typeVersion": 1,
      "position": [
        -580,
        160
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "1",
          "name": "Google Drive account"
        }
      }
    },
    {
      "parameters": {
        "operation": "upload",
        "path": "public_html/",
        "binaryData": false,
        "fileContent": "={{$json[\"id\"]}}"
      },
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        -380,
        160
      ],
      "credentials": {
        "ftp": {
          "id": "2",
          "name": "FTP account"
        }
      }
    }
  ],
  "connections": {
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Welcome to the community @DiegoSefrin

Once you have the updated folder, you need to use the regular Google Drive node to list all the files. After you have all the files, you use Google drive once again, but this time to download each of the files, then at this point, you can use the FTP node to upload the files you downloaded. Check the example workflow below.

{
  "nodes": [
    {
      "parameters": {},
      "name": "Start",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [
        240,
        300
      ]
    },
    {
      "parameters": {
        "pollTimes": {
          "item": [
            {
              "mode": "everyMinute"
            }
          ]
        },
        "triggerOn": "specificFolder",
        "folderToWatch": "17f-FBYPnpMdWJMUyqgjJjiON5wOiq2N-",
        "event": "folderUpdated"
      },
      "name": "Google Drive Trigger",
      "type": "n8n-nodes-base.googleDriveTrigger",
      "typeVersion": 1,
      "position": [
        500,
        300
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "152",
          "name": "asasasas"
        }
      }
    },
    {
      "parameters": {
        "operation": "upload",
        "path": "public_html/",
        "binaryData": false,
        "fileContent": "={{$json[\"id\"]}}"
      },
      "name": "FTP",
      "type": "n8n-nodes-base.ftp",
      "typeVersion": 1,
      "position": [
        1240,
        300
      ],
      "credentials": {
        "ftp": {
          "id": "2",
          "name": "FTP account"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "list",
        "useQueryString": true,
        "queryString": "={{\"parents in \" + \"'\" + $node[\"Google Drive Trigger\"].json[\"id\"] + \"'\"}}",
        "options": {}
      },
      "name": "Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 1,
      "position": [
        740,
        300
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "152",
          "name": "asasasas"
        }
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "download",
        "fileId": "={{ $node[\"Google Drive\"].json[\"id\"] }}",
        "options": {}
      },
      "name": "Google Drive1",
      "type": "n8n-nodes-base.googleDrive",
      "typeVersion": 1,
      "position": [
        980,
        300
      ],
      "credentials": {
        "googleDriveOAuth2Api": {
          "id": "152",
          "name": "asasasas"
        }
      }
    }
  ],
  "connections": {
    "Google Drive Trigger": {
      "main": [
        [
          {
            "node": "Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive": {
      "main": [
        [
          {
            "node": "Google Drive1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Drive1": {
      "main": [
        [
          {
            "node": "FTP",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Ricardo, thanks for your help! I will test and bring feedback!