Compare commits

...

2 Commits

Author SHA1 Message Date
954df5a0ee 11.0.11 2024-04-12 14:44:13 +02:00
b9c15b11ad fix(core): update 2024-04-12 14:44:12 +02:00
3 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "@push.rocks/smartfile", "name": "@push.rocks/smartfile",
"private": false, "private": false,
"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.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",

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