# Move a Nextcloud folder file by file: n8n workflow template

> Started by another system calling it. It calls services over plain HTTP rather than through connectors.

Source: https://millionrounds.com/workflow/move-a-nextcloud-folder-file-by-file (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Documents and files](https://millionrounds.com/workflows?category=Documents+and+files#library)

# 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

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmove-a-nextcloud-folder-file-by-file)

**23 steps** Large: read it before trusting it with anything live

**4** Branches: places the flow splits

**2** Loops or waits

**0** Services by connector: it calls them over plain HTTP

## The flow

Starts it 3 Logic 14 Service 6

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

- 1 **When clicking "Execute Workflow"** Manual trigger *Starts it*
- 2 **Webhook** Webhook *Starts it*
- 3 **Execute Workflow Trigger** Execute Workflow trigger *Starts it*
- 4 **Set paths** Set *Logic*
- 5 **Whether the request is valid** If *Logic*
- 6 **Whether the request is valid1** If *Logic*
- 7 **Set folder-paths for from and to** Set *Logic*
- 8 **Stop and Error: request not valid** Stop And Error *Logic*
- 9 **Stop and Error: request not valid1** Stop And Error *Logic*
- 10 **Create to folder if necessary** Next Cloud *Service*
- 11 **Get all folders/files in from-folder** Next Cloud *Service*
- 12 **Loop over files and folders** Split In Batches *Logic*
- 13 **Whether type is file** If *Logic*
- 14 **Consolidate all files and folders found** No Op *Logic*
- 15 **Set new path for subfolder** Set *Logic*
- 16 **Whether there is are more files or subfolders found** If *Logic*
- 17 **Create subfolder in to-folder** Next Cloud *Service*
- 18 **Consolidate all found files** Code *Logic*
- 19 **Get all folders/files in found subfolder** Next Cloud *Service*
- 20 **Set new path for file** Code *Logic*
- 21 **Loop Over all files** Split In Batches *Logic*
- 22 **Delete from-folder** Next Cloud *Service*
- 23 **Move file to destination** Next Cloud *Service*

## 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.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fmove-a-nextcloud-folder-file-by-file)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Workflows like it

Also documents and files, with the same services where possible, closest in size first.

- [**Backup Workflow/Credential To Dropbox with Telegram** 23 steps · Dropbox, Telegram](https://millionrounds.com/workflow/backup-workflow-credential-to-dropbox-with-telegram)
- [**Generate bulk certificates and contracts with Carbone** 23 steps · Excel](https://millionrounds.com/workflow/generate-bulk-certificates-and-contracts-with-carbone)
- [**Process signed DocuSign contracts with Supabase and Claude** 23 steps · Gmail, Outlook](https://millionrounds.com/workflow/process-signed-docusign-contracts-with-supabase-and-claude)
- [**Save & organize LINE message files in Google Drive with Sheets** 23 steps · Google Drive, Google Sheets](https://millionrounds.com/workflow/save-and-organize-line-message-files-in-google-drive-with-sh)
- [**Build a financial documents assistant with Qdrant and Mistral** 23 steps · calls a model · Qdrant](https://millionrounds.com/workflow/build-a-financial-documents-assistant-with-qdrant-and-mistra)
- [**Chat with Supabase** 23 steps · calls a model · Gmail, Google Drive](https://millionrounds.com/workflow/chat-with-supabase)
