Compare commits
2 Commits
55e6e81957
...
954df5a0ee
Author | SHA1 | Date | |
---|---|---|---|
954df5a0ee | |||
b9c15b11ad |
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "@push.rocks/smartfile",
|
||||
"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.",
|
||||
"main": "dist_ts/index.js",
|
||||
"typings": "dist_ts/index.d.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.'
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user