NEW ISSUES

This commit is contained in:
Caleb Gardner
2022-06-18 14:40:33 -05:00
parent 49595de3f2
commit 8f5e1fef96
3 changed files with 6 additions and 5 deletions
+2
View File
@@ -2,6 +2,7 @@ package inode
import (
"encoding/binary"
"fmt"
"io"
"math"
)
@@ -36,6 +37,7 @@ type EFile struct {
func ReadFile(r io.Reader, blockSize uint32) (f File, err error) {
err = binary.Read(r, binary.LittleEndian, &f.fileInit)
if err != nil {
fmt.Println("Hi")
return
}
f.BlockSizes = make([]uint32, int(math.Ceil(float64(f.Size)/float64(blockSize))))