feat(backend): add create-folder action node#24
Open
LukasHirt wants to merge 2 commits into
Open
Conversation
Expose webdavfile.Client's existing private mkcol as a public CreateFolder(ctx, authHeader, davPath) method, wire it into the executor's FileClient interface, and add a createFolder action type that renders its `path` template against the run's vars and issues a WebDAV MKCOL. Idempotent like the existing internal mkcol usage in Comment (201/405/409 all treated as success). Unlike move/copy/rename, createFolder does not change currentPath — it creates a location rather than relocating the file under consideration. Signed-off-by: Lukas Hirt <info@hirt.cz>
Add a "Create Folder" action-picker entry (action-create-folder) under the Actions category, backed by the new createFolder ActionType, and wire its `path` template-string config field into NodeDetailsPanel.vue following the same v-model/actionParam pattern used by move/copy's destination and rename's newName fields. Signed-off-by: Lukas Hirt <info@hirt.cz>
LukasHirt
force-pushed
the
feat/action-create-folder
branch
from
July 24, 2026 20:52
5b43843 to
f125aab
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
createFolderaction node end to end: pick aCreate Folderentry on the canvas, configure a template-renderedpath(e.g./Archive/{{llm.output}}), and the workflow issues a WebDAVMKCOLat that path when it runs.webdavfile.Client's existing privatemkcolmethod as a publicCreateFolder(ctx, authHeader, davPath) error, adds it to the executor'sFileClientinterface, and adds acase "createFolder":arm torunActionthat renders thepathtemplate againstvarsand callsCreateFolder. Idempotent (201/405/409 all treated as success), matching the existing internalmkcolusage inComment.move/copy/rename, this action does not changecurrentPath— it creates a location rather than relocating the file under consideration.result.Outputis set to the rendered path so a subsequentmove/copyaction can reuse it as its owndestination.action-create-folderentry toNODE_TYPESunder the Actions category (iconfolder-add), extendsActionTypewith'createFolder', and wires thepathconfig field intoNodeDetailsPanel.vuefollowing the samev-model/actionParampattern used bymove'sdestinationfield.Test plan
cd backend && go test ./...— all packages pass, including new tests inpkg/executor(renderspathtemplates, callsCreateFolderwith the rendered path, setsresult.Output, and does not mutatecurrentPath) and newpkg/webdavfile/webdavfile_test.go(exercisesCreateFolder's MKCOL request shape and its 201/405/409 idempotency, plus propagation of unexpected statuses).go vet ./...andgofmt -l .clean.npm run test:unit— newtests/unit/nodeTypes.spec.tsassertsaction-create-folderexists inNODE_TYPESwith the right category/actionType/defaultData and resolves viafindNodeTypeForNode.npm run check:typesandnpm run lintclean.🤖 Generated with Claude Code