Skip to content

Commit c88b17b

Browse files
committed
Fix incorrect value of analyze file
1 parent 826695e commit c88b17b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build/lib/modues/analyzer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ class DiskAnalyzer {
196196
template = template.replace("{{content}}", html);
197197
var today = new Date().toISOString().replace(/:/g, '.').substring(0, 10);
198198
var targetFilePath = path.join(rootPath, '../compare', `index-${today}.html`);
199-
var targetfilepath = await DiskFileSystem_1.default.generateSafeFilePath(targetFilePath);
200-
fs.writeFileSync(targetfilepath, template, { flag: "as+", encoding: "utf8" });
201-
console.log('See analyze file here: ', targetFilePath);
199+
var targetfilepathSafe = await DiskFileSystem_1.default.generateSafeFilePath(targetFilePath);
200+
fs.writeFileSync(targetfilepathSafe, template, { flag: "as+", encoding: "utf8" });
201+
console.log('See analyze file here: ', targetfilepathSafe);
202202
}
203203
;
204204
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "disk-management",
3-
"version": "0.5.3",
3+
"version": "0.5.4",
44
"description": "Module/application for management your disk",
55
"main": "index.js",
66
"license": "MIT",

src/lib/modues/analyzer.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,9 @@ export default class DiskAnalyzer {
239239

240240
var today = new Date().toISOString().replace(/:/g, '.').substring(0, 10);
241241
var targetFilePath = path.join(rootPath, '../compare', `index-${today}.html`);
242-
var targetfilepath = await DiskFileSystem.generateSafeFilePath(targetFilePath);
243-
fs.writeFileSync(targetfilepath, template, {flag: "as+", encoding: "utf8"});
242+
var targetfilepathSafe = await DiskFileSystem.generateSafeFilePath(targetFilePath);
243+
fs.writeFileSync(targetfilepathSafe, template, {flag: "as+", encoding: "utf8"});
244244

245-
console.log('See analyze file here: ', targetFilePath);
245+
console.log('See analyze file here: ', targetfilepathSafe);
246246
};
247247
};

0 commit comments

Comments
 (0)