From 657c7c962aff53b21746018c6ed800b339d8af72 Mon Sep 17 00:00:00 2001 From: mildred Date: Mon, 25 Mar 2024 13:43:27 +0100 Subject: [PATCH] remove console messages --- src/utils.ts | 3 --- 1 file changed, 3 deletions(-) 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}`); }