feat: udpates

This commit is contained in:
2024-09-01 15:13:18 +08:00
parent 1971f37a9d
commit 84c0e2e872
4 changed files with 130 additions and 12 deletions

10
main.go
View File

@@ -6,6 +6,7 @@ import (
"encoding/hex"
"fmt"
"math"
"os"
"git.hatter.ink/hatter/go-afero-encfs/encfs"
"github.com/spf13/afero"
@@ -94,6 +95,15 @@ func main() {
return
}
fmt.Println("write len: ", len)
f, err := os.Open("test2")
fmt.Println(f, "-", err, ", ", os.IsNotExist(err))
a, err := encFs.Open(".")
fs, err := a.Readdir(1000)
for _, ff := range fs {
fmt.Println(ff.Name())
}
}
func generateCtrEncryptBytes(key, iv []byte, offset, len int64) ([]byte, error) {