fix(core): update
This commit is contained in:
parent
55e6e81957
commit
b9c15b11ad
@ -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.'
|
||||||
}
|
}
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user