Smart Nested Folder Creation in OneDrive with Existence Checking

Go to Workflow
0 views
Built by Marko Korhonen Marko Korhonen
Created on June 08, 2026

Description

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

How it works

It creates a nested folder in your OneDrive's My Files
You could be creating folders like:

Foobar
Foobar/Barfur
Foobar/Barfur/Furbar

Workflow checks if any of the folders in the path exists and created only the ones that don't exist.

The usual case it to use it in your other workflows and execute it as Sub-workflow.

Requirements

n8n-nodes-datastore Community node
Microsoft Drive account credential

Nodes Used (2)

Code
n8n-nodes-base.code
Microsoft OneDrive
n8n-nodes-base.microsoftOneDrive