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); } /**