continued work on encryption
This commit is contained in:
parent
4e1d5b36b2
commit
880e2f06b3
14 changed files with 362 additions and 39 deletions
|
|
@ -2,6 +2,7 @@ package crypto
|
|||
|
||||
import (
|
||||
"cachefs/pkg/provider"
|
||||
osp "cachefs/pkg/provider/os"
|
||||
"encoding/base64"
|
||||
"errors"
|
||||
"io/fs"
|
||||
|
|
@ -102,7 +103,11 @@ func (fs *FS) Root() string {
|
|||
return fs.fs.Root()
|
||||
}
|
||||
|
||||
func (fs *FS) Fstat(_ uintptr) (int64, error) {
|
||||
func (fs *FS) Fstat(fd uintptr) (int64, error) {
|
||||
osp, ok := fs.fs.(*osp.FS)
|
||||
if ok {
|
||||
return osp.Fstat(fd)
|
||||
}
|
||||
return 0, provider.ErrFstat
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue