mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-03-12 00:45:14 +00:00
Update file.js
This commit is contained in:
parent
ce4026b59e
commit
173e9498c2
|
@ -8,7 +8,6 @@
|
|||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
var LIB = require("lib/std");
|
||||
var SHELL = require("lib/shell");
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
// Private APIs / Utility functions
|
||||
|
@ -102,7 +101,7 @@ function writeFile(FN, content, charset) {
|
|||
|
||||
while (!ok) {
|
||||
// [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
|
||||
if (charset) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user