Skip to content
FlowHubFluxonLab
C
Nextcloudfree

Move a nextcloud folder file by file

by Nico Kowalczykadapted from n8n official workflow galleryUpdated Aug 2026
RequiresCCodeNextcloudNextcloud
Share Post Share
MaWhen clicking "Execute Workflow"When clicking "…IfWhether type is fileWhether type is…SeSet new path for subfolderSet new path fo…CoSet new path for fileSet new path fo…WeWebhookEWExecute Workflow TriggerExecute Workflo…SeSet folder-paths for from and toSet folder-path…Create to folder if necessaryCreate to folde…Get all folders/files in from-folderGet all folders…SILoop over files and foldersLoop over files…NOConsolidate all files and folders foundConsolidate all…Create subfolder in to-folderCreate subfolde…Get all folders/files in found subfolderGet all folders…IfWhether there is are more files or subfolders foundWhether there i…CoConsolidate all found filesConsolidate all…SILoop Over all filesLoop Over all f…Move file to destinationMove file to de…Delete from-folderDelete from-fol…SeSet pathsIfWhether the request is validWhether the req…SAStop and Error: request not validStop and Error:…IfWhether the request is valid1Whether the req…SAStop and Error: request not valid1Stop and Error:…12345678910111213141516171819202122232425
1/5
STEPS · 25
Run manually by an operator

Description: This template facilitates the transfer of a folder, along with all its files and subfolders, within a Nextcloud instance. The Nextcloud user must have access to both the source and destination folders. While Nextcloud allows folder movement, complications may arise when dealing with external storage that has rate limits. This workflow ensures the individual transfer of each file to avoid exceeding rate limits, particularly useful for setups involving external storage with rate limitations. How it works: Identify all files and subfolders within the specified source folder. Recursive search within subfolders for additional files. Replicate the folder structure in the target folder. Individually move each identified file to the corresponding location in the target folder. Set up steps: Set Nextcloud credentials for all Nextcloud nodes involved in the process. -Edit the trigger settings. Detailed instructions can be found within the respective trigger configuration. Initiate the workflow to commence the folder transfer process. Help If you need assistance with applying this template, feel free to reach out to me.

Tags

n8nreference-onlynext-cloud
Connects
CCodenextcloudNextcloud
CategoryNextcloud
Triggermanual
Complexityadvanced
Nodes23
AddedNov 27, 2023