diff --git a/lib/util/fs/util.ts b/lib/util/fs/util.ts
index cbe8afae07824b62f08efde2c210067effab0217..2a15c048a0f8a0a0b3b6c6c8589e24ffbd87513f 100644
--- a/lib/util/fs/util.ts
+++ b/lib/util/fs/util.ts
@@ -3,11 +3,11 @@ import { GlobalConfig } from '../../config/global';
 import { FILE_ACCESS_VIOLATION_ERROR } from '../../constants/error-messages';
 import { logger } from '../../logger';
 
-function assertBaseDir(path: string, baseDir: string): void {
-  if (!path.startsWith(baseDir)) {
+function assertBaseDir(path: string, allowedDir: string): void {
+  if (!path.startsWith(allowedDir)) {
     logger.debug(
-      { path, baseDir },
-      'Preventing access to file outside the base directory',
+      { path, allowedDir },
+      'Preventing access to file outside allowed directory',
     );
     throw new Error(FILE_ACCESS_VIOLATION_ERROR);
   }