diff --git a/src/utils.ts b/src/utils.ts index 1e3ed50..0579956 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -56,14 +56,12 @@ export function formatDate(dateStr: string) { } export async function copyFile(source: string, target: string) { - console.log("copyFile...."); const fs = require('fs').promises; const path = require('path'); let sourceFilePath = path.join(PATH_FILES_TO_IMPORT, source); let targetFilePath = path.join(PATH_FILES_TO_IMPORT, target); - console.log(`Current working directory: ${process.cwd()}`); sourceFilePath = path.join(process.cwd(), sourceFilePath); targetFilePath = path.join(process.cwd(), targetFilePath); // @@ -103,7 +101,6 @@ export async function deleteFile(fileName: string): Promise { let filePath = path.join(PATH_FILES_TO_IMPORT, fileName); filePath = path.join(process.cwd(), filePath); await unlink(filePath); - console.log(`File deleted: ${filePath}`); } catch (error) { console.error(`Error deleting file: ${fileName}. Error: ${error}`); }