mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2025-07-19 12:03:37 +00:00
feat: normalize
This commit is contained in:
@@ -145,8 +145,8 @@ export enum FileUriType {
|
|||||||
|
|
||||||
export async function checkUriType(Uri: string) {
|
export async function checkUriType(Uri: string) {
|
||||||
const LocalFileRet = await solveProblem((uri: string) => {
|
const LocalFileRet = await solveProblem((uri: string) => {
|
||||||
if (fs.existsSync(uri)) {
|
if (fs.existsSync(path.normalize(uri))) {
|
||||||
return { Uri: uri, Type: FileUriType.Local };
|
return { Uri: path.normalize(uri), Type: FileUriType.Local };
|
||||||
}
|
}
|
||||||
return undefined;
|
return undefined;
|
||||||
}, Uri);
|
}, Uri);
|
||||||
|
Reference in New Issue
Block a user