mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-27 16:33:49 +00:00
12 lines
211 B
TypeScript
12 lines
211 B
TypeScript
import fs from 'fs';
|
|
|
|
export const removeFilesByPaths = (paths: string[]) => {
|
|
paths.forEach((path) => {
|
|
fs.unlink(path, (err) => {
|
|
if (err) {
|
|
// console.error(err);
|
|
}
|
|
});
|
|
});
|
|
};
|