Skip to content

Commit

Permalink
+ test
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Nov 28, 2024
1 parent 5d236ce commit e6e3f89
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions application/platform/nodejs.js
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ function module_code(library_namespace) {
T : [ 'Recursively removing subdirectories of %1', path ]
}, 2, 'remove_fso');
}
// https://github.com/nodejs/node/issues/56049
// console.trace(path, recursive);
node_fs.rmSync(path, {
recursive : !!recursive
});
Expand Down Expand Up @@ -562,6 +564,7 @@ function module_code(library_namespace) {
* @returns error
*/
function fs_writeFileSync(file_path, data, options) {
// console.trace(file_path);
if (options) {
var encoding;
if (typeof options === 'string') {
Expand Down Expand Up @@ -592,6 +595,7 @@ function module_code(library_namespace) {
options.encoding = encoding = _.file_utf16le_mapping[encoding];
}
}
// console.trace(options);

try {
node_fs.writeFileSync(file_path, data, options);
Expand Down

0 comments on commit e6e3f89

Please sign in to comment.