diff --git a/app.js b/app.js index fd6accb4..d5232f4c 100644 --- a/app.js +++ b/app.js @@ -69,7 +69,7 @@ function traverseDirectory(dir, rootDir) { } const itemPath = path.join(dir, item); - const relativePath = path.relative(rootDir, itemPath); + const relativePath = path.relative(__dirname, itemPath); const stats = fs.statSync(itemPath); if (stats.isDirectory()) {