feat: udpates
This commit is contained in:
10
main.go
10
main.go
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user