[fix]
Some checks failed
docker / build-docker (linux/386) (push) Failing after 53s
docker / build-docker (linux/arm/v5) (push) Failing after 13s
docker / build-docker (linux/arm/v7) (push) Failing after 14s
docker / build-docker (linux/arm64) (push) Failing after 14s
docker / build-docker (linux/arm64/v8) (push) Failing after 13s
docker / build-docker (linux/riscv64) (push) Failing after 13s
docker / build-docker (linux/amd64) (push) Failing after 13s

This commit is contained in:
royalcat 2024-03-28 17:38:17 +03:00
parent e82d000729
commit 1e128d8ec5

View file

@ -253,7 +253,7 @@ func (fs *TorrentFs) Stat(ctx context.Context, filename string) (fs.FileInfo, er
) )
defer span.End() defer span.End()
if path.Clean(filename) == Separator { if isRoot(filename) {
return fs, nil return fs, nil
} }
@ -274,7 +274,7 @@ func (fs *TorrentFs) Open(ctx context.Context, filename string) (File, error) {
) )
defer span.End() defer span.End()
if path.Clean(filename) == Separator { if isRoot(filename) {
return newDirFile(fs.name), nil return newDirFile(fs.name), nil
} }