changing to packets user and creating internal.db, improved bat-bin

Packet.lua
This commit is contained in:
2025-11-02 21:29:52 -03:00
parent 22fb19a550
commit 1c3e448b8d
7 changed files with 57 additions and 7 deletions

View File

@@ -1,7 +1,6 @@
package install
import (
"fmt"
"io"
"os"
"path/filepath"
@@ -45,10 +44,8 @@ func walkAll(dirToWalk string) ([]BasicFileStatus, error) {
}
func InstallFiles(files []BasicFileStatus, packetDir string) error {
for i, v := range files {
for _, v := range files {
sysPath, _ := strings.CutPrefix(v.Filepath, packetDir)
fmt.Printf("[%d] Installing file %s\n", i, v.Filepath)
fmt.Printf("[%d] NEED to track file %s\n", i, sysPath)
if v.IsDir {
if err := os.MkdirAll(sysPath, v.PermMode.Perm()); err != nil {
return err