refactor: cleanup package names (#5605)

This commit is contained in:
Henrique Dias 2025-12-06 10:52:11 +01:00 committed by GitHub
parent a6934e40ff
commit f029c3005e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
33 changed files with 78 additions and 78 deletions

View file

@ -23,7 +23,7 @@ import (
"github.com/spf13/afero"
fbErrors "github.com/filebrowser/filebrowser/v2/errors"
fberrors "github.com/filebrowser/filebrowser/v2/errors"
"github.com/filebrowser/filebrowser/v2/rules"
)
@ -168,7 +168,7 @@ func stat(opts *FileOptions) (*FileInfo, error) {
// algorithm. The checksums data is saved on File object.
func (i *FileInfo) Checksum(algo string) error {
if i.IsDir {
return fbErrors.ErrIsDirectory
return fberrors.ErrIsDirectory
}
if i.Checksums == nil {
@ -193,7 +193,7 @@ func (i *FileInfo) Checksum(algo string) error {
case "sha512":
h = sha512.New()
default:
return fbErrors.ErrInvalidOption
return fberrors.ErrInvalidOption
}
_, err = io.Copy(h, reader)