Fix duplicate path declaration properly
This commit is contained in:
parent
37d90ab836
commit
7813490a72
3
main.js
3
main.js
@ -120,9 +120,8 @@ ipcMain.handle('rename-file', async (event, { oldPath, newName }) => {
|
|||||||
|
|
||||||
// Create log file for debugging
|
// Create log file for debugging
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const path = require('path');
|
|
||||||
|
|
||||||
const logFilePath = path.join(__dirname, 'file-move-debug.log');
|
const logFilePath = __dirname + '/file-move-debug.log';
|
||||||
function writeLog(message) {
|
function writeLog(message) {
|
||||||
const timestamp = new Date().toISOString();
|
const timestamp = new Date().toISOString();
|
||||||
const logEntry = `[${timestamp}] ${message}\n`;
|
const logEntry = `[${timestamp}] ${message}\n`;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user