feat: 修改为public目录

This commit is contained in:
lirtual 2024-12-21 20:46:09 +08:00
parent 27b95ca504
commit 485099ebfe
2 changed files with 2 additions and 2 deletions

View File

@ -333,7 +333,7 @@ const processDirectory = async (dir) => {
}; };
// 主目录 // 主目录
const mainDir = path.join(__dirname, '../public/audio'); const mainDir = path.join(__dirname, '../public');
console.log('开始音视频优化处理...'); console.log('开始音视频优化处理...');
console.log(`主目录: ${mainDir}`); console.log(`主目录: ${mainDir}`);

View File

@ -9,7 +9,7 @@ import { Worker, isMainThread, parentPort, workerData } from 'worker_threads';
const __filename = fileURLToPath(import.meta.url); const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename); const __dirname = path.dirname(__filename);
const sourceDir = 'public/images'; const sourceDir = 'public';
const SMALL_FILE_THRESHOLD = 5 * 1024; // 5KB const SMALL_FILE_THRESHOLD = 5 * 1024; // 5KB
// 动态计算最佳参数 // 动态计算最佳参数