fix deprecated

This commit is contained in:
Celogeek 2024-03-03 12:11:14 +01:00
parent efc5a9793e
commit 8c77cb4506
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -2,8 +2,8 @@ package piwigo
import ( import (
"fmt" "fmt"
"io/ioutil"
"net/url" "net/url"
"os"
"path/filepath" "path/filepath"
"strings" "strings"
"sync" "sync"
@ -161,7 +161,7 @@ func (p *Piwigo) ScanTree(
return return
} }
dirs, err := ioutil.ReadDir(rootPath) dirs, err := os.ReadDir(rootPath)
if err != nil { if err != nil {
stat.Error("ScanTree Dir", rootPath, err) stat.Error("ScanTree Dir", rootPath, err)
return return