This commit is contained in:
cangui 2025-08-18 20:48:13 +02:00
parent fe7337b728
commit 82f2dd9f7f
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ import (
func InitDB() *gorm.DB {
dbPath := "data/shelfly_db.db"
print(filepath.Dir(dbPath));
// Crée le dossier parent s'il n'existe pas
if err := os.MkdirAll(filepath.Dir(dbPath), os.ModePerm); err != nil {
panic(fmt.Sprintf("Erreur lors de la création du dossier : %v", err))

View File

@ -264,7 +264,7 @@ func startHTTP() {
func main() {
// SFTP sur 2222 (root = ./upload)
go startSFTPServer(SFTPBaseDir)
//go startSFTPServer(SFTPBaseDir)
// HTTP normal
startHTTP()