get also the dir data of the path

This commit is contained in:
lublak 2021-02-15 12:34:05 +01:00
parent bc66fab041
commit 8f318de288

View file

@ -103,6 +103,7 @@ export async function prepareBinaryData(binaryData: Buffer, filePath?: string, m
const filePathParts = path.parse(filePath as string); const filePathParts = path.parse(filePath as string);
returnData.dir = filePathParts.dir;
returnData.fileName = filePathParts.base; returnData.fileName = filePathParts.base;
// Remove the dot // Remove the dot