mirror of
https://github.com/VueTorrent/VueTorrent.git
synced 2025-03-14 12:10:18 +03:00
fix: explicitly match the file (#1065)
This commit is contained in:
parent
d2de208450
commit
7ea8ac3ded
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ export function genFileTree(files) {
|
|||
.reduce((parentPath, nodeName) => {
|
||||
const nextPath = parentPath === '' ? nodeName : parentPath + '/' + nodeName
|
||||
|
||||
if (file.name.endsWith(nodeName)) {
|
||||
if (file.name.replace('\\', '/').split('/').pop() === nodeName) {
|
||||
/** @type {TreeFile} */
|
||||
const newFile = {
|
||||
type: 'file',
|
||||
|
|
Loading…
Add table
Reference in a new issue