diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index ab431fb5cc..b65b102495 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -103,7 +103,9 @@ export async function prepareBinaryData(binaryData: Buffer, filePath?: string, m const filePathParts = path.parse(filePath as string); - returnData.dir = filePathParts.dir; + if (filePathParts.dir !== '') { + returnData.directory = filePathParts.dir; + } returnData.fileName = filePathParts.base; // Remove the dot diff --git a/packages/editor-ui/src/components/RunData.vue b/packages/editor-ui/src/components/RunData.vue index 43f2a528ae..bc338fa9dc 100644 --- a/packages/editor-ui/src/components/RunData.vue +++ b/packages/editor-ui/src/components/RunData.vue @@ -157,9 +157,9 @@