From 1e128d8ec58cd38e423b75368c1634a12870293f Mon Sep 17 00:00:00 2001 From: royalcat Date: Thu, 28 Mar 2024 17:38:17 +0300 Subject: [PATCH] [fix] --- src/host/vfs/torrent.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/host/vfs/torrent.go b/src/host/vfs/torrent.go index f33c326..6512a12 100644 --- a/src/host/vfs/torrent.go +++ b/src/host/vfs/torrent.go @@ -253,7 +253,7 @@ func (fs *TorrentFs) Stat(ctx context.Context, filename string) (fs.FileInfo, er ) defer span.End() - if path.Clean(filename) == Separator { + if isRoot(filename) { return fs, nil } @@ -274,7 +274,7 @@ func (fs *TorrentFs) Open(ctx context.Context, filename string) (File, error) { ) defer span.End() - if path.Clean(filename) == Separator { + if isRoot(filename) { return newDirFile(fs.name), nil }