Update file.js

This commit is contained in:
Namhyeon Go 2022-01-27 12:47:10 +09:00 committed by GitHub
parent ce4026b59e
commit 173e9498c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,7 +8,6 @@
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
var LIB = require("lib/std"); var LIB = require("lib/std");
var SHELL = require("lib/shell");
///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////
// Private APIs / Utility functions // Private APIs / Utility functions
@ -102,7 +101,7 @@ function writeFile(FN, content, charset) {
while (!ok) { while (!ok) {
// [lib/file] Can not overwrite a file with ADODB.Stream SaveToFile() #32 // [lib/file] Can not overwrite a file with ADODB.Stream SaveToFile() #32
SHELL.exec(["del", FN]); require("lib/shell").exec(["del", FN]);
// ascii:Scripting.FileSystemObject, unicode:ADODB.Stream // ascii:Scripting.FileSystemObject, unicode:ADODB.Stream
if (charset) { if (charset) {