fix(core): update

This commit is contained in:
Philipp Kunz 2024-04-12 14:44:12 +02:00
parent 55e6e81957
commit b9c15b11ad
2 changed files with 4 additions and 2 deletions

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@push.rocks/smartfile', 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.' description: 'provides a robust suite of tools for managing files in Node.js using TypeScript.'
} }

View File

@ -169,7 +169,9 @@ export class SmartFile extends plugins.smartjson.Smartjson {
* - no argument write to exactly where the file was picked up * - no argument write to exactly where the file was picked up
*/ */
public async write() { 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);
} }
/** /**