[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
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:
parent
e82d000729
commit
1e128d8ec5
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue