This commit is contained in:
einhornimmond 2025-10-25 15:31:05 +02:00
parent 181c1d28fc
commit 39ae896675
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,7 @@
import { execSync } from 'node:child_process'
import fs from 'node:fs'
import path from 'node:path'
import AdmZip from 'adm-zip'
import { getLogger } from 'log4js'
import { exportCommunities } from '../client/GradidoNode/communities'
import { GradidoNodeProcess } from '../client/GradidoNode/GradidoNodeProcess'
@ -14,7 +15,6 @@ import {
import { checkFileExist, checkPathExist } from '../utils/filesystem'
import { isPortOpen } from '../utils/network'
import { AppContextClients } from './appContext'
import AdmZip from 'adm-zip'
const logger = getLogger(`${LOG4JS_BASE_CATEGORY}.bootstrap.initGradidoNode`)

View File

@ -8,8 +8,8 @@ export function checkFileExist(filePath: string): boolean {
try {
fs.accessSync(filePath, fs.constants.R_OK | fs.constants.W_OK)
return true
} catch (err) {
// logger.debug(`file ${filePath} does not exist: ${err}`)
} catch (_err) {
// logger.debug(`file ${filePath} does not exist: ${_err}`)
return false
}
}