1
0
mirror of https://github.com/boku7/Loki synced 2026-06-06 15:24:27 +00:00

Update handler.js

fix bug in func_File_Copy()
This commit is contained in:
Bobby Cooke
2025-04-04 09:21:53 -07:00
committed by GitHub
parent 44d63f67be
commit 3d919814e2
+2 -2
View File
@@ -114,7 +114,7 @@ async function func_File_Copy(srcPath, destPath) {
// Ensure the destination directory exists
await fsp.mkdir(path.dirname(destPath), { recursive: true });
// Copy the file
await fsp.func_File_Copy(srcPath, destPath);
await fsp.copyFile(srcPath, destPath);
output = `File copied from ${srcPath} to ${destPath}`;
//log( output );
} catch (error) {
@@ -595,4 +595,4 @@ try
module.exports = {
func_Command_Handler
};
};