remove console messages

This commit is contained in:
mildred 2024-03-25 13:43:27 +01:00
parent 3c6cb39956
commit 657c7c962a

View file

@ -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<void> {
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}`);
}