From b9c15b11adc7c7f5ee83cb4d998d5382c9077ca0 Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Fri, 12 Apr 2024 14:44:12 +0200 Subject: [PATCH] fix(core): update --- ts/00_commitinfo_data.ts | 2 +- ts/classes.smartfile.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ts/00_commitinfo_data.ts b/ts/00_commitinfo_data.ts index 7c856f5..6705836 100644 --- a/ts/00_commitinfo_data.ts +++ b/ts/00_commitinfo_data.ts @@ -3,6 +3,6 @@ */ export const commitinfo = { name: '@push.rocks/smartfile', - version: '11.0.10', + version: '11.0.11', description: 'provides a robust suite of tools for managing files in Node.js using TypeScript.' } diff --git a/ts/classes.smartfile.ts b/ts/classes.smartfile.ts index c1ff150..da9b67a 100644 --- a/ts/classes.smartfile.ts +++ b/ts/classes.smartfile.ts @@ -169,7 +169,9 @@ export class SmartFile extends plugins.smartjson.Smartjson { * - no argument write to exactly where the file was picked up */ public async write() { - await memory.toFs(this.contentBuffer, plugins.path.join(this.base, this.path)); + let writePath = plugins.path.join(this.base, this.path); + plugins.smartpath.transform.toAbsolute(this.path, this.base); + await memory.toFs(this.contentBuffer, writePath); } /**