mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
add dir to different positions
This commit is contained in:
@@ -60,14 +60,12 @@ export class ReadBinaryFiles implements INodeType {
|
||||
const items: INodeExecutionData[] = [];
|
||||
let item: INodeExecutionData;
|
||||
let data: Buffer;
|
||||
let fileName: string;
|
||||
for (const filePath of files) {
|
||||
data = await fsReadFileAsync(filePath) as Buffer;
|
||||
|
||||
fileName = path.parse(filePath).base;
|
||||
item = {
|
||||
binary: {
|
||||
[dataPropertyName]: await this.helpers.prepareBinaryData(data, fileName),
|
||||
[dataPropertyName]: await this.helpers.prepareBinaryData(data, filePath),
|
||||
},
|
||||
json: {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user