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 }