mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-14 05:31:03 +00:00
Update file.js
This commit is contained in:
parent
ce4026b59e
commit
173e9498c2
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user