mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
⚡ Minor changes to directories in binary data
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user