update finfo
This commit is contained in:
parent
67c2a1e48d
commit
7816056529
|
|
@ -20,7 +20,7 @@ export const _ = {
|
|||
const file = Bun.file(path);
|
||||
|
||||
if (await file.exists()) {
|
||||
const arr = path.split("-");
|
||||
const arr = (path.split("/").pop() || "").split("-");
|
||||
const ext = arr.pop();
|
||||
const fname = arr.join("-") + "." + ext;
|
||||
const ctype = mime.getType(fname);
|
||||
|
|
|
|||
Loading…
Reference in New Issue