Automation library · Documents and files

Move a Nextcloud folder file by file

Started by another system calling it. It calls services over plain HTTP rather than through connectors. 23 steps, 4 branches, 2 loops or waits: large, and worth reading before you trust it with anything live.

Large

23 stepsLarge: read it before trusting it with anything live
4Branches: places the flow splits
2Loops or waits
0Services by connector: it calls them over plain HTTP

The flow

Starts it 3Logic 14Service 6

The steps in the order they run, from what starts it.

  1. 1When clicking "Execute Workflow"Manual triggerStarts it
  2. 2WebhookWebhookStarts it
  3. 3Execute Workflow TriggerExecute Workflow triggerStarts it
  4. 4Set pathsSetLogic
  5. 5Whether the request is validIfLogic
  6. 6Whether the request is valid1IfLogic
  7. 7Set folder-paths for from and toSetLogic
  8. 8Stop and Error: request not validStop And ErrorLogic
  9. 9Stop and Error: request not valid1Stop And ErrorLogic
  10. 10Create to folder if necessaryNext CloudService
  11. 11Get all folders/files in from-folderNext CloudService
  12. 12Loop over files and foldersSplit In BatchesLogic
  13. 13Whether type is fileIfLogic
  14. 14Consolidate all files and folders foundNo OpLogic
  15. 15Set new path for subfolderSetLogic
  16. 16Whether there is are more files or subfolders foundIfLogic
  17. 17Create subfolder in to-folderNext CloudService
  18. 18Consolidate all found filesCodeLogic
  19. 19Get all folders/files in found subfolderNext CloudService
  20. 20Set new path for fileCodeLogic
  21. 21Loop Over all filesSplit In BatchesLogic
  22. 22Delete from-folderNext CloudService
  23. 23Move file to destinationNext CloudService

How it's built

Starts on
Another system calling it
Steps
23, with 4 branches, 2 loops or waits
Size
Large: read it before trusting it with anything live
Connects to
Nothing by connector; it calls services over plain HTTP
Model
None. This is plumbing, not judgement

Questions

What does it need to run?

An n8n account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on another system calling it.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Take your time. At 23 steps it is large: read it before trusting it with anything live.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

Before you run it

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 23 steps before you point it at anything that matters.