Refactor: Rename NanoKVM to BatchuKVM and update server URL

This commit is contained in:
2025-12-09 20:35:38 +09:00
commit 8cf674c9e5
396 changed files with 54380 additions and 0 deletions

23
server/utils/chmod.go Normal file
View File

@@ -0,0 +1,23 @@
package utils
import (
"os"
"path/filepath"
)
func ChmodRecursively(path string, mode uint32) error {
return filepath.Walk(path, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if !info.IsDir() {
err = os.Chmod(path, os.FileMode(mode))
if err != nil {
return err
}
}
return nil
})
}