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:
+2
-2
@@ -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
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user