mirror of
https://github.com/labring/FastGPT.git
synced 2026-01-18 05:01:48 +08:00
* fix: csv check * fix: template * Update packages/global/common/file/utils.ts Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
7 lines
167 B
TypeScript
7 lines
167 B
TypeScript
import path from 'path';
|
|
|
|
export const isCSVFile = (filename: string) => {
|
|
const extension = path.extname(filename).toLowerCase();
|
|
return extension === '.csv';
|
|
};
|