diff --git a/lib/file.js b/lib/file.js index 29c9832..d2f9619 100644 --- a/lib/file.js +++ b/lib/file.js @@ -150,9 +150,9 @@ exports.writeBinaryFile = function(FN, DATA) { exports.moveFile = function(FROM, TO) { var FSO = CreateObject("Scripting.FileSystemObject"); - var res = FSO.MoveFile(FROM, TO); + var result = FSO.MoveFile(FROM, TO); FSO = null; - return res; + return result; }; ///////////////////////////////////////////////////////////////////////////////// @@ -161,9 +161,20 @@ exports.moveFile = function(FROM, TO) { exports.createFolder = function(FN) { var FSO = CreateObject("Scripting.FileSystemObject"); - var res = FSO.CreateFolder(FN); + var result = FSO.CreateFolder(FN); FSO = null; - return res; + return result; +}; + +///////////////////////////////////////////////////////////////////////////////// +// exports.deleteFolder +///////////////////////////////////////////////////////////////////////////////// + +exports.createFolder = function(FN) { + var FSO = CreateObject("Scripting.FileSystemObject"); + var result = FSO.DeleteFolder(FN); + FSO = null; + return result; }; ///////////////////////////////////////////////////////////////////////////////// @@ -172,9 +183,9 @@ exports.createFolder = function(FN) { exports.deleteFile = function(FN) { var FSO = CreateObject("Scripting.FileSystemObject"); - var res = FSO.DeleteFile(FN); + var result = FSO.DeleteFile(FN); FSO = null; - return res; + return result; }; /////////////////////////////////////////////////////////////////////////////////